fixs #9456 : Workspace switcher font weight (#9591)

Co-authored-by: Marie Stoppa <marie.stoppa@essec.edu>
This commit is contained in:
Supriyo
2025-01-14 17:22:19 +05:30
committed by GitHub
parent 5d09bd4b93
commit f151963e66
2 changed files with 5 additions and 3 deletions

View File

@ -45,6 +45,7 @@ const StyledContainer = styled.div<{ isNavigationDrawerExpanded: boolean }>`
const StyledLabel = styled.div`
align-items: center;
display: flex;
font-weight: ${({ theme }) => theme.font.weight.medium};
`;
const StyledIconChevronDown = styled(IconChevronDown)<{ disabled?: boolean }>`

View File

@ -57,11 +57,12 @@ export const NavigationDrawerHeader = ({
isNavigationDrawerExpandedState,
);
const isMultiWorkspace =
isMultiWorkspaceEnabled && workspaces !== null && workspaces.length > 1;
return (
<StyledContainer>
{isMultiWorkspaceEnabled &&
workspaces !== null &&
workspaces.length > 1 ? (
{isMultiWorkspace ? (
<MultiWorkspaceDropdownButton workspaces={workspaces} />
) : (
<StyledSingleWorkspaceContainer>