Rework profile page to include working view selector
This commit is contained in:
parent
2ec09ba545
commit
bb06ef4f6e
19 changed files with 569 additions and 94 deletions
|
@ -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(
|
||||
|
|
|
@ -99,7 +99,10 @@ export const MobileShell: React.FC = observer(() => {
|
|||
const [isLocationMenuActive, setLocationMenuActive] = useState(false)
|
||||
const screenRenderDesc = constructScreenRenderDesc(store.nav)
|
||||
|
||||
const onPressAvi = () => createAccountsMenu()
|
||||
const onPressAvi = () =>
|
||||
createAccountsMenu({
|
||||
debug_onPressItem: () => store.nav.navigate('/profile/alice.com'),
|
||||
})
|
||||
const onPressLocation = () => setLocationMenuActive(true)
|
||||
const onPressEllipsis = () => createLocationMenu()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue