Some parts of the Frontend used theme constants exported from `modules/ui` while other parts used theme constants exported from `twenty-ui`. This PR centralizes theme constants by removing them from `modules/ui` completely.
10 lines
242 B
TypeScript
10 lines
242 B
TypeScript
import { atom } from 'recoil';
|
|
import { MOBILE_VIEWPORT } from 'twenty-ui';
|
|
|
|
const isMobile = window.innerWidth <= MOBILE_VIEWPORT;
|
|
|
|
export const isNavigationDrawerOpenState = atom({
|
|
key: 'isNavigationDrawerOpen',
|
|
default: !isMobile,
|
|
});
|