Fix workspace logo (#9129)
Follow up on: https://github.com/twentyhq/twenty/issues/9042#issuecomment-2550886611
This commit is contained in:
@ -19,7 +19,7 @@ export type NavigationDrawerProps = {
|
||||
className?: string;
|
||||
footer?: ReactNode;
|
||||
logo?: string;
|
||||
title?: string;
|
||||
title: string;
|
||||
};
|
||||
|
||||
const StyledAnimatedContainer = styled(motion.div)<{ isSettings?: boolean }>`
|
||||
@ -111,15 +111,15 @@ export const NavigationDrawer = ({
|
||||
onMouseEnter={handleHover}
|
||||
onMouseLeave={handleMouseLeave}
|
||||
>
|
||||
{isSettingsDrawer && title ? (
|
||||
!isMobile && <NavigationDrawerBackButton title={title} />
|
||||
) : (
|
||||
<NavigationDrawerHeader
|
||||
name={title}
|
||||
logo={logo}
|
||||
showCollapseButton={isHovered}
|
||||
/>
|
||||
)}
|
||||
{isSettingsDrawer && title
|
||||
? !isMobile && <NavigationDrawerBackButton title={title} />
|
||||
: logo && (
|
||||
<NavigationDrawerHeader
|
||||
name={title}
|
||||
logo={logo}
|
||||
showCollapseButton={isHovered}
|
||||
/>
|
||||
)}
|
||||
<StyledItemsContainer isSettings={isSettingsDrawer}>
|
||||
{children}
|
||||
</StyledItemsContainer>
|
||||
|
||||
Reference in New Issue
Block a user