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 539bf5d350
commit 53b8f0d040
3 changed files with 91 additions and 17 deletions

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())