The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
made sidebar always visible on settings page (#5823)
RobertoSimonini13440889ad0f7
diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsxindex 2b9863915ab..524e8794769 100644--- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx+++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx@@ -5,6 +5,7 @@ import { motion } from 'framer-motion';import { useRecoilValue } from 'recoil';import { MOBILE_VIEWPORT } from 'twenty-ui';+import { useIsSettingsPage } from '@/navigation/hooks/useIsSettingsPage';import { isNavigationDrawerOpenState } from '@/ui/navigation/states/isNavigationDrawerOpenState';import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile';@@ -69,6 +70,7 @@ export const NavigationDrawer = ({const isMobile = useIsMobile();const theme = useTheme();const isNavigationDrawerOpen = useRecoilValue(isNavigationDrawerOpenState);+ const isSettingsPage = useIsSettingsPage();const handleHover = () => {setIsHovered(true);@@ -90,7 +92,7 @@ export const NavigationDrawer = ({initial={false}animate={{width: isMobile ? mobileWidth : desktopWidth,- opacity: isNavigationDrawerOpen ? 1 : 0,+ opacity: isNavigationDrawerOpen || isSettingsPage ? 1 : 0,}}transition={{duration: theme.animation.duration.normal,