Switch to temporary 'fixed tabs' model for default and notifications

This commit is contained in:
Paul Frazee
2022-12-08 14:21:28 -06:00
parent 2f0157dd33
commit 96dc9e398b
3 changed files with 91 additions and 17 deletions
+6 -1
View File
@@ -37,7 +37,12 @@ export const Menu = ({navIdx, visible}: ScreenParams) => {
// =
const onNavigate = (url: string) => {
store.nav.navigate(url)
if (url === '/notifications') {
store.nav.switchTo(1, true)
} else {
store.nav.switchTo(0, true)
store.nav.navigate(url)
}
}
const onPressCreateScene = () => {
store.shell.openModal(new CreateSceneModel())