diff --git a/packages/twenty-front/src/modules/ui/navigation/states/isNavigationDrawerExpanded.ts b/packages/twenty-front/src/modules/ui/navigation/states/isNavigationDrawerExpanded.ts index 390e883b814..84de68556d3 100644 --- a/packages/twenty-front/src/modules/ui/navigation/states/isNavigationDrawerExpanded.ts +++ b/packages/twenty-front/src/modules/ui/navigation/states/isNavigationDrawerExpanded.ts @@ -1,9 +1,11 @@ import { atom } from 'recoil'; import { MOBILE_VIEWPORT } from 'twenty-ui/theme'; +import { localStorageEffect } from '~/utils/recoil-effects'; const isMobile = window.innerWidth <= MOBILE_VIEWPORT; export const isNavigationDrawerExpandedState = atom({ key: 'isNavigationDrawerExpanded', default: !isMobile, + effects: [localStorageEffect()], });