Zhitomir commited on
Commit
cf20c6f
·
1 Parent(s): 91d2560

hide default sidebar visibility on mobile devices

Browse files
Files changed (1) hide show
  1. client/src/routes/Root.tsx +1 -1
client/src/routes/Root.tsx CHANGED
@@ -10,7 +10,7 @@ export default function Root() {
10
  const { isAuthenticated } = useAuthContext();
11
  const [navVisible, setNavVisible] = useState(() => {
12
  const savedNavVisible = localStorage.getItem('navVisible');
13
- return savedNavVisible !== null ? JSON.parse(savedNavVisible) : true;
14
  });
15
 
16
  const search = useSearch({ isAuthenticated });
 
10
  const { isAuthenticated } = useAuthContext();
11
  const [navVisible, setNavVisible] = useState(() => {
12
  const savedNavVisible = localStorage.getItem('navVisible');
13
+ return savedNavVisible !== null ? JSON.parse(savedNavVisible) : false;
14
  });
15
 
16
  const search = useSearch({ isAuthenticated });