Co-authored-by: Marie Stoppa <marie.stoppa@essec.edu>
This commit is contained in:
@ -45,6 +45,7 @@ const StyledContainer = styled.div<{ isNavigationDrawerExpanded: boolean }>`
|
|||||||
const StyledLabel = styled.div`
|
const StyledLabel = styled.div`
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
font-weight: ${({ theme }) => theme.font.weight.medium};
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledIconChevronDown = styled(IconChevronDown)<{ disabled?: boolean }>`
|
const StyledIconChevronDown = styled(IconChevronDown)<{ disabled?: boolean }>`
|
||||||
|
|||||||
@ -57,11 +57,12 @@ export const NavigationDrawerHeader = ({
|
|||||||
isNavigationDrawerExpandedState,
|
isNavigationDrawerExpandedState,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const isMultiWorkspace =
|
||||||
|
isMultiWorkspaceEnabled && workspaces !== null && workspaces.length > 1;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledContainer>
|
<StyledContainer>
|
||||||
{isMultiWorkspaceEnabled &&
|
{isMultiWorkspace ? (
|
||||||
workspaces !== null &&
|
|
||||||
workspaces.length > 1 ? (
|
|
||||||
<MultiWorkspaceDropdownButton workspaces={workspaces} />
|
<MultiWorkspaceDropdownButton workspaces={workspaces} />
|
||||||
) : (
|
) : (
|
||||||
<StyledSingleWorkspaceContainer>
|
<StyledSingleWorkspaceContainer>
|
||||||
|
|||||||
Reference in New Issue
Block a user