Skip to content

Commit

Permalink
feat: improved the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaan25 committed Oct 18, 2024
1 parent e394f7a commit fa7c1ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { IconButton } from '@/ui/input/button/components/IconButton';
import { NavigationDrawerCollapseButton } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerCollapseButton';
import { isNavigationDrawerOpenState } from '@/ui/navigation/states/isNavigationDrawerOpenState';
import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile';
import { useIsRoute } from '~/utils/currentPage';
import { matchPath, useLocation } from 'react-router-dom';

export const PAGE_BAR_MIN_HEIGHT = 40;

Expand Down Expand Up @@ -110,7 +110,8 @@ export const PageHeader = ({
const isMobile = useIsMobile();
const theme = useTheme();
const isNavigationDrawerOpen = useRecoilValue(isNavigationDrawerOpenState);
const isSettingsPage = useIsRoute('/settings/profile');
const { pathname } = useLocation();
const isSettingsPage = matchPath('/settings/*', pathname);

return (
<StyledTopBarContainer width={width}>
Expand Down
11 changes: 0 additions & 11 deletions packages/twenty-front/src/utils/currentPage.ts

This file was deleted.

0 comments on commit fa7c1ef

Please sign in to comment.