diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-17 16:01:29 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-17 16:01:29 -0600 |
commit | a3bca154c4d8c0c0c42d56d61b2ab2188204710e (patch) | |
tree | 56d9eb9be13cf368b9fe2a2845919ae09774526b /src/view/screens/Notifications.tsx | |
parent | b2160ae15952baf19d7375db2de77ce8d969b44d (diff) | |
download | voidsky-a3bca154c4d8c0c0c42d56d61b2ab2188204710e.tar.zst |
Improve reliability of screen titles
Diffstat (limited to 'src/view/screens/Notifications.tsx')
-rw-r--r-- | src/view/screens/Notifications.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/screens/Notifications.tsx b/src/view/screens/Notifications.tsx index 71eda34de..7e4de497e 100644 --- a/src/view/screens/Notifications.tsx +++ b/src/view/screens/Notifications.tsx @@ -7,7 +7,7 @@ import {useStores} from '../../state' import {NotificationsViewModel} from '../../state/models/notifications-view' import {ScreenParams} from '../routes' -export const Notifications = ({visible}: ScreenParams) => { +export const Notifications = ({navIdx, visible}: ScreenParams) => { const [hasSetup, setHasSetup] = useState<boolean>(false) const [notesView, setNotesView] = useState< NotificationsViewModel | undefined @@ -24,7 +24,7 @@ export const Notifications = ({visible}: ScreenParams) => { console.log('Updating notifications feed') notesView?.update() } else { - store.nav.setTitle('Notifications') + store.nav.setTitle(navIdx, 'Notifications') const newNotesView = new NotificationsViewModel(store, {}) setNotesView(newNotesView) newNotesView.setup().then(() => { |