Merge pull request #490 from Discours/fix/subnavigation-toggling

Fixed subnavigation toggling
This commit is contained in:
Tony 2024-10-08 15:26:20 +03:00 committed by GitHub
commit 2669e73284
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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()}