* Make the sidebar collapsable * Fix padding * Automatically collapase sidebar and hide container on mobile * Hide navbar content when navbar is collapsed * Update naming convention for states
11 lines
242 B
TypeScript
11 lines
242 B
TypeScript
import { atom } from 'recoil';
|
|
|
|
import { MOBILE_VIEWPORT } from '../styles/themes';
|
|
|
|
const isMobile = window.innerWidth <= MOBILE_VIEWPORT;
|
|
|
|
export const isNavbarOpenedState = atom({
|
|
key: 'ui/isNavbarOpenedState',
|
|
default: !isMobile,
|
|
});
|