Merge pull request #31 from zhnedyalkow/feature/hide-default-visibility-mobile-nav
Browse files
.github/workflows/deploy-hf.yml
CHANGED
|
@@ -9,7 +9,7 @@ jobs:
|
|
| 9 |
sync-to-hub:
|
| 10 |
runs-on: ubuntu-latest
|
| 11 |
steps:
|
| 12 |
-
- uses: actions/checkout@
|
| 13 |
with:
|
| 14 |
fetch-depth: 0
|
| 15 |
lfs: true
|
|
|
|
| 9 |
sync-to-hub:
|
| 10 |
runs-on: ubuntu-latest
|
| 11 |
steps:
|
| 12 |
+
- uses: actions/checkout@v4
|
| 13 |
with:
|
| 14 |
fetch-depth: 0
|
| 15 |
lfs: true
|
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) :
|
| 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 });
|