Skip to content

Commit

Permalink
Fix workspace logo
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesBochet committed Dec 18, 2024
1 parent baf3395 commit 81be37d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 81be37d

Please sign in to comment.