Fixed subnavigation toggling
This commit is contained in:
parent
7f3e8f431d
commit
03bfcbfe58
|
@ -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()}
|
||||
|
|
Loading…
Reference in New Issue
Block a user