From 787704ed8c8a32a7b91791f0c8fd41a2efcd8fc0 Mon Sep 17 00:00:00 2001 From: Starstrike Date: Wed, 30 Apr 2025 15:04:01 -0400 Subject: [PATCH] Reorganize URL structure to put admin/view at the beginning of paths --- frontend/src/App.tsx | 4 ++-- frontend/src/components/EventList.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index ca9ca96..68703a9 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -72,8 +72,8 @@ const App: React.FC = () => { } /> } /> } /> - } /> - } /> + } /> + } /> diff --git a/frontend/src/components/EventList.tsx b/frontend/src/components/EventList.tsx index 42976ab..5a5e637 100644 --- a/frontend/src/components/EventList.tsx +++ b/frontend/src/components/EventList.tsx @@ -45,7 +45,7 @@ const EventList: React.FC = () => { }; const handleAdminClick = (event: Event) => { - navigate(`/events/${event.slug}/admin`); + navigate(`/admin/events/${event.slug}`); }; return ( @@ -90,7 +90,7 @@ const EventList: React.FC = () => {