mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Show/hide the navigation menu
This commit is contained in:
parent
0b908c4bb1
commit
3a7698eb16
1 changed files with 12 additions and 10 deletions
|
|
@ -121,16 +121,18 @@ export function NavigationLayout(props: NavigationLayoutProps): JSX.Element {
|
|||
setShowNavMenu(!showNavMenu)
|
||||
}}
|
||||
/>
|
||||
<NavigationMenu
|
||||
section={props.section}
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
setShowAddLinkModal={() => {}}
|
||||
searchTerm=""
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
applySearchQuery={() => {}}
|
||||
showFilterMenu={showNavMenu}
|
||||
setShowFilterMenu={setShowNavMenu}
|
||||
/>
|
||||
{showNavMenu && (
|
||||
<NavigationMenu
|
||||
section={props.section}
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
setShowAddLinkModal={() => {}}
|
||||
searchTerm=""
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
applySearchQuery={() => {}}
|
||||
showFilterMenu={showNavMenu}
|
||||
setShowFilterMenu={setShowNavMenu}
|
||||
/>
|
||||
)}
|
||||
{props.children}
|
||||
{showLogoutConfirmation ? (
|
||||
<ConfirmationModal
|
||||
|
|
|
|||
Loading…
Reference in a new issue