From 86b1414ae03b08001d4c577419cf3ae73742a468 Mon Sep 17 00:00:00 2001 From: Guillermo Pages Date: Mon, 24 Nov 2025 10:43:51 +0100 Subject: [PATCH] refactor: simplify navigation for admin portal Remove player-facing menu items: - Remove 'Booking' (player feature) - Remove 'Player Lookup' (player feature) - Remove 'Assessment' (player feature) Update remaining navigation: - Replace 'Dashboard' with direct link to '/admin/clubs' - Rename to 'Venue Management' for clarity - Simplified menu now shows only admin features - Updated animation indices after removing items Result: Clean, focused admin portal navigation. --- src/components/Navigation.tsx | 105 +++------------------------------- 1 file changed, 7 insertions(+), 98 deletions(-) diff --git a/src/components/Navigation.tsx b/src/components/Navigation.tsx index 63b46a4..f7647ba 100644 --- a/src/components/Navigation.tsx +++ b/src/components/Navigation.tsx @@ -329,107 +329,16 @@ export default function Navigation({ pageTitle }: NavigationProps) { animate="open" > -
- +
+
- {t('Dashboard')} + {t('Venue Management')} - - - - - - {/* Divider */} -
- - -
{ - const remoteSlug = settings?.default_remote_sport.facility_slug; - const sportSlug = settings?.default_remote_sport.sport_slug; - const hasCreds = !!getClaimedRemoteMember(settings); - closeMenu(); - if (remoteSlug && sportSlug && hasCreds) { - setShowPartnerModal(true); - } else { - setShowClaimModal(true); - } - }} - className="flex items-center space-x-3 p-4 rounded-xl hover:bg-slate-50 transition-colors duration-200 group cursor-pointer" - > -
- -
- {t('Player Lookup')} -
-
- - - -
- -
- {t("What's my level?")} - -
- - {/* Admin Section */} -
- - - -
- -
- {t('Venue Admin')} - -
)} @@ -437,7 +346,7 @@ export default function Navigation({ pageTitle }: NavigationProps) {