Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesBochet committed Dec 18, 2024
1 parent 81be37d commit 96e072e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { SupportDropdown } from '@/support/components/SupportDropdown';
import {
NavigationDrawer,
NavigationDrawerProps,
} from '@/ui/navigation/navigation-drawer/components/NavigationDrawer';
import { NavigationDrawer } from '@/ui/navigation/navigation-drawer/components/NavigationDrawer';

import { NavigationDrawerSectionForObjectMetadataItems } from '@/object-metadata/components/NavigationDrawerSectionForObjectMetadataItems';
import { NavigationDrawerItem } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerItem';
import { NavigationDrawerSection } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerSection';
import { DEFAULT_WORKSPACE_LOGO } from '@/ui/navigation/navigation-drawer/constants/DefaultWorkspaceLogo';
import { DEFAULT_WORKSPACE_NAME } from '@/ui/navigation/navigation-drawer/constants/DefaultWorkspaceName';
import styled from '@emotion/styled';
import { IconSearch, IconSettings, useIsMobile } from 'twenty-ui';
import { generatedMockObjectMetadataItems } from '~/testing/mock-data/generatedMockObjectMetadataItems';
Expand Down Expand Up @@ -62,14 +61,14 @@ export const SignInAppNavigationDrawerMock = ({

const footer = <SupportDropdown />;

const drawerProps: NavigationDrawerProps = {
children,
footer,
};

return (
<NavigationDrawer className={className} footer={drawerProps.footer}>
{drawerProps.children}
<NavigationDrawer
className={className}
footer={footer}
logo={DEFAULT_WORKSPACE_LOGO}
title={DEFAULT_WORKSPACE_NAME}
>
{children}
</NavigationDrawer>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export type NavigationDrawerProps = {
children: ReactNode;
className?: string;
footer?: ReactNode;
logo?: string;
title?: string;
logo: string;
title: string;
};

const StyledAnimatedContainer = styled(motion.div)<{ isSettings?: boolean }>`
Expand Down Expand Up @@ -115,8 +115,8 @@ export const NavigationDrawer = ({
!isMobile && <NavigationDrawerBackButton title={title} />
) : (
<NavigationDrawerHeader
name={title ?? ''}
logo={logo ?? ''}
name={title}
logo={logo}
showCollapseButton={isHovered}
/>
)}
Expand Down

0 comments on commit 96e072e

Please sign in to comment.