Skip to content

Commit

Permalink
Merge branch 'staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Feb 28, 2024
2 parents 0911314 + 2e1872e commit 700b161
Showing 1 changed file with 27 additions and 28 deletions.
55 changes: 27 additions & 28 deletions src/components/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,16 +286,15 @@ function Header() {
/>
</NavItem>
)}
{!isInProduction() && (
<NavItem
current={path.startsWith(
`/${urls.variations[lang].split('/')[1]}`,
)}
title={intl.formatMessage({
id: 'app.header.nav.institutions',
defaultMessage: 'Les établissements',
})}
>

<NavItem
current={path.startsWith(`/${urls.variations[lang].split('/')[1]}`)}
title={intl.formatMessage({
id: 'app.header.nav.institutions',
defaultMessage: 'Les établissements',
})}
>
{!isInProduction() && (
<NavSubItem
current={path === urls.policy[lang]}
title={intl.formatMessage({
Expand All @@ -306,24 +305,24 @@ function Header() {
asLink={<RouterLink to={urls.policy[lang] + search} />}
display={!isInProduction()}
/>
<NavSubItem
current={path === urls.variations[lang]}
title={intl.formatMessage({
id: 'app.header.nav.declinaisons.existing',
defaultMessage: 'Les baromètres des établissements',
})}
asLink={<RouterLink to={urls.variations[lang] + search} />}
/>
<NavSubItem
current={path === urls.howto[lang]}
title={intl.formatMessage({
id: 'app.header.nav.declinaisons.howto',
defaultMessage: 'Tutoriel pour réaliser son BSO local',
})}
asLink={<RouterLink to={urls.howto[lang] + search} />}
/>
</NavItem>
)}
)}
<NavSubItem
current={path === urls.variations[lang]}
title={intl.formatMessage({
id: 'app.header.nav.declinaisons.existing',
defaultMessage: 'Les baromètres des établissements',
})}
asLink={<RouterLink to={urls.variations[lang] + search} />}
/>
<NavSubItem
current={path === urls.howto[lang]}
title={intl.formatMessage({
id: 'app.header.nav.declinaisons.howto',
defaultMessage: 'Tutoriel pour réaliser son BSO local',
})}
asLink={<RouterLink to={urls.howto[lang] + search} />}
/>
</NavItem>
<NavItem
current={path.startsWith(
`/${urls.methodologie[lang].split('/')[1]}`,
Expand Down

0 comments on commit 700b161

Please sign in to comment.