From 096a08708e2310becba56a237ef63b5cf6e3c4c4 Mon Sep 17 00:00:00 2001
From: Michael Hunteman <michael@huntm.net>
Date: Sun, 25 Aug 2024 12:44:32 -0700
Subject: Add admin dashboard

---
 client/src/main.tsx | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

(limited to 'client/src/main.tsx')

diff --git a/client/src/main.tsx b/client/src/main.tsx
index 70aad60..2268d5f 100644
--- a/client/src/main.tsx
+++ b/client/src/main.tsx
@@ -11,6 +11,9 @@ import GuestLogin from './components/GuestLogin';
 import Rsvp from './components/Rsvp';
 import RsvpForm from './components/RsvpForm';
 import Home from './components/Home';
+import AdminLogin from './components/AdminLogin';
+import Admin from './components/Admin';
+import Dashboard from './components/Dashboard';
 import './main.css';
 
 const router = createBrowserRouter([
@@ -33,6 +36,10 @@ const router = createBrowserRouter([
         path: 'guest/login',
         element: <GuestLogin />,
       },
+      {
+        path: 'admin/login',
+        element: <AdminLogin />,
+      },
     ],
   },
   {
@@ -44,6 +51,15 @@ const router = createBrowserRouter([
       },
     ],
   },
+  {
+    element: <Admin />,
+    children: [
+      {
+        path: 'dashboard',
+        element: <Dashboard />,
+      },
+    ],
+  },
 ]);
 
 ReactDOM.createRoot(document.getElementById('root')!).render(
-- 
cgit v1.2.3

