about summary refs log tree commit diff
path: root/src/view/shell/mobile/accounts-menu.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-09-06 14:26:39 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-09-06 14:26:39 -0500
commitbb06ef4f6e7ac7889b3112285d0cf3445b8eb766 (patch)
treee820f23a49c83a3f0aba83b62f4e006307b62504 /src/view/shell/mobile/accounts-menu.tsx
parent2ec09ba54574f5e05f0bbec9c864dacd2092edd4 (diff)
downloadvoidsky-bb06ef4f6e7ac7889b3112285d0cf3445b8eb766.tar.zst
Rework profile page to include working view selector
Diffstat (limited to 'src/view/shell/mobile/accounts-menu.tsx')
-rw-r--r--src/view/shell/mobile/accounts-menu.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/view/shell/mobile/accounts-menu.tsx b/src/view/shell/mobile/accounts-menu.tsx
index e3b61ce42..24b614cec 100644
--- a/src/view/shell/mobile/accounts-menu.tsx
+++ b/src/view/shell/mobile/accounts-menu.tsx
@@ -12,9 +12,14 @@ import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
 import {AVIS} from '../../lib/assets'
 import {s, colors} from '../../lib/styles'
 
-export function createAccountsMenu(): RootSiblings {
+export function createAccountsMenu({
+  debug_onPressItem,
+}: {
+  debug_onPressItem: () => void
+}): RootSiblings {
   const onPressItem = (_index: number) => {
     sibling.destroy()
+    debug_onPressItem() // TODO
   }
   const onOuterPress = () => sibling.destroy()
   const sibling = new RootSiblings(