From 7103019890960e793deefb64987a09b33be60b42 Mon Sep 17 00:00:00 2001
From: Michael Hunteman <michael@huntm.net>
Date: Fri, 17 May 2024 15:20:30 -0700
Subject: Add golang server

---
 src/components/Rsvp.tsx | 29 -----------------------------
 1 file changed, 29 deletions(-)
 delete mode 100644 src/components/Rsvp.tsx

(limited to 'src/components/Rsvp.tsx')

diff --git a/src/components/Rsvp.tsx b/src/components/Rsvp.tsx
deleted file mode 100644
index dad7213..0000000
--- a/src/components/Rsvp.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-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 { selectCurrentGuest } from '../features/auth/authSlice';
-
-const authenticate = () => {
-  const guest = useSelector(selectCurrentGuest);
-  return useMemo(() => ({ guest }), [guest]);
-};
-
-function Rsvp() {
-  const auth = authenticate();
-  const location = useLocation();
-
-  return auth?.guest ? (
-    <>
-      <CssBaseline />
-      <NavBar />
-      <Outlet context={auth?.guest} />
-    </>
-  ) : (
-    <Navigate to="/guest-login" state={{ from: location }} replace />
-  );
-}
-
-export default Rsvp;
-- 
cgit v1.2.3

