diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-07-24 20:09:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-24 20:09:20 +0100 |
commit | cfb8a3160e0092990bafd05cb97006720400448a (patch) | |
tree | 0e7b6fe5bc4e3e3d9ee25e228de228d24b78de40 /src/Navigation.tsx | |
parent | 9bd8393685cb6f2640dd33ee5707f3cb710f1365 (diff) | |
download | voidsky-cfb8a3160e0092990bafd05cb97006720400448a.tar.zst |
Priority notifications (#4798)
* new settings screen * bring back the spinner * add experimental language * fix typo, change leading * integrate priority notifications API * update package * use refetch instead of invalidateQueries * fix read-after-write issue by polling for update * add spinner for initial load * rm onmutate, it's overcomplicated * set error state eagerly * Change language in description Co-authored-by: Hailey <me@haileyok.com> * prettier * add `Toggle.Platform` * extract out mutation hook + error state * rm useless cache mutation * disambiguate isError and isPending * rm unused isError --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r-- | src/Navigation.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx index 9e9b49443..8646577c8 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -76,6 +76,7 @@ import {LogScreen} from './view/screens/Log' import {ModerationModlistsScreen} from './view/screens/ModerationModlists' import {NotFoundScreen} from './view/screens/NotFound' import {NotificationsScreen} from './view/screens/Notifications' +import {NotificationsSettingsScreen} from './view/screens/NotificationsSettings' import {PostLikedByScreen} from './view/screens/PostLikedBy' import {PostRepostedByScreen} from './view/screens/PostRepostedBy' import {PostThreadScreen} from './view/screens/PostThread' @@ -325,6 +326,11 @@ function commonScreens(Stack: typeof HomeTab, unreadCountLabel?: string) { options={{title: title(msg`Chat settings`), requireAuth: true}} /> <Stack.Screen + name="NotificationsSettings" + getComponent={() => NotificationsSettingsScreen} + options={{title: title(msg`Notification settings`), requireAuth: true}} + /> + <Stack.Screen name="Feeds" getComponent={() => FeedsScreen} options={{title: title(msg`Feeds`)}} |