Skip to content

Commit

Permalink
Do not display language selector in mobile if there are no multilanguage
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs committed Jan 2, 2024
1 parent adf8632 commit 1f0a333
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frontend/src/components/Header/BurgerMenu/BurgerMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ export const BurgerMenu: React.FC<Props> = ({ config, menuItems, displayState =
{config.shouldDisplayFavorite && (
<BurgerMenuSection title={intl.formatMessage({ id: 'header.favorites' })} />
)}
<BurgerMenuSection
title={intl.formatMessage({ id: 'header.language' })}
languages={config.supportedLanguages}
/>
{config.supportedLanguages.length > 1 && (
<BurgerMenuSection
title={intl.formatMessage({ id: 'header.language' })}
languages={config.supportedLanguages}
/>
)}
<NextLink
className="flex items-center pt-4 pb-4 font-bold outline-none cursor-pointer border-b border-solid border-greySoft"
href={routes.SEARCH}
Expand Down

0 comments on commit 1f0a333

Please sign in to comment.