Fixed subnavigation toggling

This commit is contained in:
kvakazyambra 2024-10-04 01:43:12 +03:00
parent 7f3e8f431d
commit 03bfcbfe58

View File

@ -171,34 +171,34 @@ export const Header = (props: Props) => {
<ul class="view-switcher">
<Link
onMouseOver={() => toggleSubnavigation(true, setIsZineVisible)}
onMouseOut={(event?: MouseEvent) => hideSubnavigation(event, 0)}
onMouseOut={(event?: MouseEvent) => hideSubnavigation(event)}
href="/"
active={isZineVisible()}
body={t('Journal')}
/>
<Link
onMouseOver={() => toggleSubnavigation(true, setIsFeedVisible)}
onMouseOut={(event?: MouseEvent) => hideSubnavigation(event, 0)}
onMouseOut={(event?: MouseEvent) => hideSubnavigation(event)}
href="/feed"
active={isFeedVisible()}
body={t('Feed')}
/>
<Link
onMouseOver={() => toggleSubnavigation(true, setIsTopicsVisible)}
onMouseOut={(event?: MouseEvent) => hideSubnavigation(event, 0)}
onMouseOut={(event?: MouseEvent) => hideSubnavigation(event)}
href="/topic"
active={isTopicsVisible()}
body={t('Topics')}
/>
<Link
onMouseOver={(event?: MouseEvent) => hideSubnavigation(event, 0)}
onMouseOut={(event?: MouseEvent) => hideSubnavigation(event, 0)}
onMouseOut={(event?: MouseEvent) => hideSubnavigation(event)}
href="/author"
body={t('Authors')}
/>
<Link
onMouseOver={() => toggleSubnavigation(true, setIsKnowledgeBaseVisible)}
onMouseOut={(event?: MouseEvent) => hideSubnavigation(event, 0)}
onMouseOut={(event?: MouseEvent) => hideSubnavigation(event)}
href="/guide"
body={t('Knowledge base')}
active={isKnowledgeBaseVisible()}