diff options
author | Michael Hunteman <michael@huntm.net> | 2024-08-11 17:54:35 -0700 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-08-11 17:55:38 -0700 |
commit | 161483219c2fb5c9b40a8f9fd5fd8177752a7a89 (patch) | |
tree | 8e8c267ae525825e57be1a9c908d414d47675a52 /client/src/components | |
parent | e3b6f82d1c8cdeb1edeccd429d0a6b4463ba9c0d (diff) |
Delete admin component
Diffstat (limited to 'client/src/components')
-rw-r--r-- | client/src/components/Admin.tsx | 31 | ||||
-rw-r--r-- | client/src/components/Carousel.css | 2 |
2 files changed, 1 insertions, 32 deletions
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 = <p>Loading...</p>; - } else if (isSuccess) { - content = JSON.stringify(guests); - } else if (isError) { - content = <>{error.toString()}</>; - } - - return ( - <> - <p>Admin</p> - {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; } |