mirror of
https://github.com/PostHog/posthog.git
synced 2024-12-01 12:21:02 +01:00
remove navbar button handling
This commit is contained in:
parent
ddfc325c76
commit
7f261dca40
@ -27,7 +27,7 @@ export function Navbar(): JSX.Element {
|
||||
const { isAccountPopoverOpen, systemStatusHealthy } = useValues(navigationLogic)
|
||||
const { closeAccountPopover, toggleAccountPopover } = useActions(navigationLogic)
|
||||
const { isNavShown, isSidebarShown, activeNavbarItemId, navbarItems, mobileLayout } = useValues(navigation3000Logic)
|
||||
const { showSidebar, hideSidebar, toggleNavCollapsed, hideNavOnMobile } = useActions(navigation3000Logic)
|
||||
const { toggleNavCollapsed, hideNavOnMobile } = useActions(navigation3000Logic)
|
||||
const { featureFlags } = useValues(featureFlagLogic)
|
||||
const { toggleSearchBar } = useActions(commandBarLogic)
|
||||
|
||||
@ -54,20 +54,6 @@ export function Navbar(): JSX.Element {
|
||||
sideAction={item.sideAction}
|
||||
tag={item.tag}
|
||||
to={'to' in item ? item.to : undefined}
|
||||
onClick={
|
||||
'logic' in item
|
||||
? () => {
|
||||
if (
|
||||
activeNavbarItemId === item.identifier &&
|
||||
isSidebarShown
|
||||
) {
|
||||
hideSidebar()
|
||||
} else {
|
||||
showSidebar(item.identifier)
|
||||
}
|
||||
}
|
||||
: undefined
|
||||
}
|
||||
active={activeNavbarItemId === item.identifier && isSidebarShown}
|
||||
/>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user