feat: Make Nav Visible by Default on Clean Install 🧭 (#1309)

This commit is contained in:
Danny Avila 2023-12-07 22:42:14 -05:00 committed by GitHub
parent 20b93ad065
commit 9041fe7472
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ export default function Root() {
const { isAuthenticated } = useAuthContext();
const [navVisible, setNavVisible] = useState(() => {
const savedNavVisible = localStorage.getItem('navVisible');
return savedNavVisible !== null ? JSON.parse(savedNavVisible) : false;
return savedNavVisible !== null ? JSON.parse(savedNavVisible) : true;
});
const submission = useRecoilValue(store.submission);