diff options
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/components/Admin.tsx | 31 | ||||
-rw-r--r-- | client/src/components/Carousel.css | 2 | ||||
-rw-r--r-- | client/src/main.tsx | 5 |
3 files changed, 1 insertions, 37 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; } diff --git a/client/src/main.tsx b/client/src/main.tsx index 2477c37..70aad60 100644 --- a/client/src/main.tsx +++ b/client/src/main.tsx @@ -10,7 +10,6 @@ import Registry from './components/Registry'; import GuestLogin from './components/GuestLogin'; import Rsvp from './components/Rsvp'; import RsvpForm from './components/RsvpForm'; -import Admin from './components/Admin'; import Home from './components/Home'; import './main.css'; @@ -34,10 +33,6 @@ const router = createBrowserRouter([ path: 'guest/login', element: <GuestLogin />, }, - { - path: 'admin', - element: <Admin />, - }, ], }, { |