Skip to content

Commit

Permalink
Hide abroad map when showing protocol link in header
Browse files Browse the repository at this point in the history
  • Loading branch information
hkdobrev committed Oct 27, 2024
1 parent 9bc0d5e commit 046d35f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/layout/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ export default () => {
)}
{/*<a href="/signup">Запиши се</a>*/}
{/*<a href="/about">Kампанията</a>*/}
<a href="/izvan-bulgaria">Извън страната</a>
{!shouldAllowSendingProtocols(meta) && (
<a href="/izvan-bulgaria">Извън страната</a>
)}
<a href="/instructions">Инструкции</a>
<Link to={ROUTES.resultUnit.replace(':unit', '')}>Карта</Link>
{/*<a href="/videos">Видео</a>*/}
Expand Down Expand Up @@ -169,7 +171,9 @@ export default () => {
{shouldAllowSendingProtocols(meta) && (
<Link to={ROUTES.protocolForm}>Изпрати протокол</Link>
)}
<a href="/izvan-bulgaria">Извън страната</a>
{!shouldAllowSendingProtocols(meta) && (
<a href="/izvan-bulgaria">Извън страната</a>
)}
<a href="/instructions" onClick={() => setMenuOpen(false)}>
Инструкции
</a>
Expand Down

0 comments on commit 046d35f

Please sign in to comment.