From 81be37d8fa9ee3ce009470a10ec393126981ef66 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Wed, 18 Dec 2024 17:01:05 +0100 Subject: [PATCH] Fix workspace logo --- .../navigation-drawer/components/NavigationDrawer.tsx | 4 ++-- .../components/NavigationDrawerHeader.tsx | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) 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.tsx index ded8a5772cc7..3d8839b30601 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 @@ -115,8 +115,8 @@ export const NavigationDrawer = ({ !isMobile && ) : ( )} diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerHeader.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerHeader.tsx index decd0475aa28..5934d54780af 100644 --- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerHeader.tsx +++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerHeader.tsx @@ -3,8 +3,6 @@ import { useRecoilValue } from 'recoil'; import { workspacesState } from '@/auth/states/workspaces'; import { MultiWorkspaceDropdownButton } from '@/ui/navigation/navigation-drawer/components/MultiWorkspaceDropdownButton'; -import { DEFAULT_WORKSPACE_LOGO } from '@/ui/navigation/navigation-drawer/constants/DefaultWorkspaceLogo'; -import { DEFAULT_WORKSPACE_NAME } from '@/ui/navigation/navigation-drawer/constants/DefaultWorkspaceName'; import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile'; import { isMultiWorkspaceEnabledState } from '@/client-config/states/isMultiWorkspaceEnabledState'; @@ -41,14 +39,14 @@ const StyledNavigationDrawerCollapseButton = styled( `; type NavigationDrawerHeaderProps = { - name?: string; - logo?: string; + name: string; + logo: string; showCollapseButton: boolean; }; export const NavigationDrawerHeader = ({ - name = DEFAULT_WORKSPACE_NAME, - logo = DEFAULT_WORKSPACE_LOGO, + name, + logo, showCollapseButton, }: NavigationDrawerHeaderProps) => { const isMobile = useIsMobile();