From b2c65ae17ac9f023b8c3bb4de22aaccb57ee4e5f Mon Sep 17 00:00:00 2001 From: Topvennie Date: Mon, 28 Oct 2024 09:41:00 +0100 Subject: [PATCH] vinvoor: remove season selector --- vinvoor/src/App.tsx | 4 +- vinvoor/src/navbar/NavBar.tsx | 82 ++++++++++++++++++----------------- 2 files changed, 46 insertions(+), 40 deletions(-) diff --git a/vinvoor/src/App.tsx b/vinvoor/src/App.tsx index 27477c6..cdebc6f 100644 --- a/vinvoor/src/App.tsx +++ b/vinvoor/src/App.tsx @@ -25,7 +25,9 @@ export const App = () => { minHeight: "100vh", }} > - + + + { const { data: user } = useUser(); const [selectedPage, setSelectedPage] = useState(""); + const showSeasons = useMediaQuery("(min-width:400px)"); const screenSize = { mobile: { xs: "flex", md: "none" }, @@ -42,42 +44,42 @@ export const NavBar = () => { return ( - - - {/* Display either the ZeSS logo or a sandwich menu */} + + {/* Display either the ZeSS logo or a sandwich menu */} + + + + + {user && ( + + )} + + + {/* Display either all the pages or the ZeSS logo */} - - + {user && ( + + )} - {user && ( - - )} - - - {/* Display either all the pages or the ZeSS logo */} - - - {user && ( - - )} + + - - - - {/* Display a season selector */} + {/* Display a season selector */} + {showSeasons && ( { > + )} - {/* Display a dark mode switch and the user menu */} + {/* Display a dark mode switch and the user menu */} - + + - - - - + + + + ); };