From bfacba280c90c0040176431c075dfbd2b37682b5 Mon Sep 17 00:00:00 2001 From: Lowell Torola Date: Mon, 23 Dec 2024 23:49:02 -0500 Subject: [PATCH] fix mobile header --- frontend/src/components/EpisodeSwitcher.tsx | 4 ++-- frontend/src/components/Header.tsx | 10 +++++----- frontend/src/views/CodeOfConduct.tsx | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/EpisodeSwitcher.tsx b/frontend/src/components/EpisodeSwitcher.tsx index bdb7f17e2..6cee9e02b 100644 --- a/frontend/src/components/EpisodeSwitcher.tsx +++ b/frontend/src/components/EpisodeSwitcher.tsx @@ -41,8 +41,8 @@ const EpisodeSwitcher: React.FC = () => {
{idToName.get(episodeId)} diff --git a/frontend/src/components/Header.tsx b/frontend/src/components/Header.tsx index 1aeffbcc9..1d748bb1a 100644 --- a/frontend/src/components/Header.tsx +++ b/frontend/src/components/Header.tsx @@ -23,7 +23,7 @@ const Header: React.FC = () => { const renderedItems = useMemo( () => renderableItems(ALL_SIDEBAR_ITEMS, episodeData, authState, teamData), - [episodeData, teamData], + [episodeData, teamData, authState], ); return ( @@ -92,7 +92,7 @@ const Header: React.FC = () => { {/* battlecode logo, episode select */} -
+
{ @@ -100,12 +100,12 @@ const Header: React.FC = () => { }} > Battlecode Logo Battlecode Logo @@ -119,7 +119,7 @@ const Header: React.FC = () => { Open user menu