Switch to temporary 'fixed tabs' model for default and notifications
This commit is contained in:
parent
539bf5d350
commit
53b8f0d040
3 changed files with 91 additions and 17 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue