From abca372d8ef3d9ab0154c3706d88e0c3772bacc3 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Tue, 23 Sep 2025 14:48:00 -0700 Subject: add community scores API and frontend views --- frontend/src/components/NavBar.tsx | 88 +++++++++++++++----------------------- 1 file changed, 35 insertions(+), 53 deletions(-) (limited to 'frontend/src/components/NavBar.tsx') diff --git a/frontend/src/components/NavBar.tsx b/frontend/src/components/NavBar.tsx index 7e111d0..4be8607 100644 --- a/frontend/src/components/NavBar.tsx +++ b/frontend/src/components/NavBar.tsx @@ -5,58 +5,40 @@ export const NavBar = ({ currentPage, user, handleLogout }: { user: { username: string }; handleLogout: () => void; }) => { - const getMenuOptions = () => { - switch (currentPage) { - case 'dashboard': - return ( - <> - - Import Data - - - ); - case 'import': - return ( - <> - - Home - - - ); - case 'score': - return ( - <> - - Home - - - Import Data - - - ); - default: - return ( - - Import Data - - ); - } - }; + const menuOptions = ( + <> + + Home + + + Import Data + + + Community Scores + + + ); return (