From d23c659680c56af1a4bbe41505a1efb75653666e Mon Sep 17 00:00:00 2001 From: Chrtorres Date: Mon, 18 Mar 2024 12:20:24 -0400 Subject: [PATCH] Corrected unused variables and removed filter org logic --- frontend/src/components/Header.tsx | 78 +++++++++++++++--------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/frontend/src/components/Header.tsx b/frontend/src/components/Header.tsx index b7ca7a9d..b66fa6dd 100644 --- a/frontend/src/components/Header.tsx +++ b/frontend/src/components/Header.tsx @@ -101,7 +101,7 @@ const Root = styled('div')(({ theme }) => ({ [`.${classes.mobileNav}`]: { padding: `${theme.spacing(2)} ${theme.spacing()}px` - } + }, })); const GLOBAL_ADMIN = 2; @@ -230,45 +230,45 @@ const HeaderNoCtx: React.FC = (props) => { return ( - {/*
*/} - - - Crossfeed Icon Navigate Home - -
{desktopNavItems.slice()}
-
- - {userLevel > 0 && ( - <> - { - if (location.pathname !== '/inventory') - history.push('/inventory?q=' + value); - setSearchTerm(value, { - shouldClearFilters: false, - autocompleteResults: false - }); - }} +
+ + + Crossfeed Icon Navigate Home - setNavOpen((open) => !open)} - > - - - - )} - - {/*
*/} + +
{desktopNavItems.slice()}
+
+ + {userLevel > 0 && ( + <> + { + if (location.pathname !== '/inventory') + history.push('/inventory?q=' + value); + setSearchTerm(value, { + shouldClearFilters: false, + autocompleteResults: false + }); + }} + /> + setNavOpen((open) => !open)} + > + + + + )} + +