From 161483219c2fb5c9b40a8f9fd5fd8177752a7a89 Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Sun, 11 Aug 2024 17:54:35 -0700 Subject: Delete admin component --- client/src/components/Admin.tsx | 31 ------------------------------- client/src/components/Carousel.css | 2 +- 2 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 client/src/components/Admin.tsx (limited to 'client/src/components') diff --git a/client/src/components/Admin.tsx b/client/src/components/Admin.tsx deleted file mode 100644 index f1845b4..0000000 --- a/client/src/components/Admin.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import React from 'react'; -import { useGetGuestsQuery } from '../slices/apiSlice'; - -function Admin() { - const { - data: guests, - isLoading, - isSuccess, - isError, - error, - } = useGetGuestsQuery(); - - let content; - - if (isLoading) { - content =

Loading...

; - } else if (isSuccess) { - content = JSON.stringify(guests); - } else if (isError) { - content = <>{error.toString()}; - } - - return ( - <> -

Admin

- {content} - - ); -} - -export default Admin; diff --git a/client/src/components/Carousel.css b/client/src/components/Carousel.css index b9af519..4a7f6dd 100644 --- a/client/src/components/Carousel.css +++ b/client/src/components/Carousel.css @@ -12,7 +12,7 @@ height: 100%; width: 100%; @media(max-width: 768px) { - width: 80%; + width: 84%; display: flex; align-items: center; } -- cgit v1.2.3