diff --git a/downloads/BeatHound-Android-eOS-1.0.0-debug.apk b/downloads/BeatHound-Android-eOS-1.0.0-debug.apk index 56ecfea..536604c 100644 Binary files a/downloads/BeatHound-Android-eOS-1.0.0-debug.apk and b/downloads/BeatHound-Android-eOS-1.0.0-debug.apk differ diff --git a/src/components/AppHeader.tsx b/src/components/AppHeader.tsx index 40be219..b1d38a6 100644 --- a/src/components/AppHeader.tsx +++ b/src/components/AppHeader.tsx @@ -1,4 +1,3 @@ -import { useRef } from 'react'; import { IonButton, IonIcon, IonPopover } from '@ionic/react'; import { ellipsisVertical } from 'ionicons/icons'; import { usePopoverDisclosure } from '../hooks/usePopoverDisclosure'; @@ -10,11 +9,10 @@ interface AppHeaderProps { } export function AppHeader({ activeView, onNavigate }: AppHeaderProps) { - const popoverRef = useRef(null); const popover = usePopoverDisclosure(); function selectView(view: AppView): void { - void popoverRef.current?.dismiss(); + popover.close(); onNavigate(view); } @@ -38,9 +36,9 @@ export function AppHeader({ activeView, onNavigate }: AppHeaderProps) {
popover.open(event.nativeEvent)} aria-label="Open app menu" aria-haspopup="dialog" aria-expanded={popover.isOpen} @@ -51,12 +49,11 @@ export function AppHeader({ activeView, onNavigate }: AppHeaderProps) {