summaryrefslogtreecommitdiff
path: root/client/src/components/Rsvp.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/components/Rsvp.tsx')
-rw-r--r--client/src/components/Rsvp.tsx8
1 files changed, 1 insertions, 7 deletions
diff --git a/client/src/components/Rsvp.tsx b/client/src/components/Rsvp.tsx
index d694393..602f159 100644
--- a/client/src/components/Rsvp.tsx
+++ b/client/src/components/Rsvp.tsx
@@ -2,8 +2,6 @@ import React from 'react';
import { useMemo } from 'react';
import { useLocation, Navigate, Outlet } from 'react-router-dom';
import { useSelector } from 'react-redux';
-import CssBaseline from '@mui/material/CssBaseline';
-import NavBar from './NavBar';
import { selectGuest } from '../slices/auth/guestSlice';
const authenticate = () => {
@@ -16,11 +14,7 @@ function Rsvp() {
const location = useLocation();
return auth?.guest ? (
- <>
- <CssBaseline />
- <NavBar />
- <Outlet context={auth?.guest} />
- </>
+ <Outlet context={auth?.guest} />
) : (
<Navigate to="/guests/login" state={{ from: location }} replace />
);