From f7f0db65d36506d1e32c3d349e4505136180afb0 Mon Sep 17 00:00:00 2001 From: renahlee Date: Tue, 16 May 2023 22:31:59 -0700 Subject: Update hint for notifications --- src/view/shell/Drawer.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/view/shell/Drawer.tsx') diff --git a/src/view/shell/Drawer.tsx b/src/view/shell/Drawer.tsx index d595bc524..89e30002e 100644 --- a/src/view/shell/Drawer.tsx +++ b/src/view/shell/Drawer.tsx @@ -222,7 +222,11 @@ export const DrawerContent = observer(() => { } label="Notifications" accessibilityLabel="Notifications" - accessibilityHint={`${store.me.notifications.unreadCountLabel} unread`} + accessibilityHint={ + notifications.unreadCountLabel === '' + ? 'No new notifications' + : `${notifications.unreadCountLabel} unread` + } count={notifications.unreadCountLabel} bold={isAtNotifications} onPress={onPressNotifications} -- cgit 1.4.1 From d6ca8e918af213959791bec3e9daf976c65c1be1 Mon Sep 17 00:00:00 2001 From: renahlee Date: Wed, 17 May 2023 09:13:06 -0700 Subject: Update to empty hint if no notifications --- src/view/shell/Drawer.tsx | 2 +- src/view/shell/bottom-bar/BottomBar.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/view/shell/Drawer.tsx') diff --git a/src/view/shell/Drawer.tsx b/src/view/shell/Drawer.tsx index 89e30002e..2ecdbaab2 100644 --- a/src/view/shell/Drawer.tsx +++ b/src/view/shell/Drawer.tsx @@ -224,7 +224,7 @@ export const DrawerContent = observer(() => { accessibilityLabel="Notifications" accessibilityHint={ notifications.unreadCountLabel === '' - ? 'No new notifications' + ? '' : `${notifications.unreadCountLabel} unread` } count={notifications.unreadCountLabel} diff --git a/src/view/shell/bottom-bar/BottomBar.tsx b/src/view/shell/bottom-bar/BottomBar.tsx index b057964c6..ef9499f9f 100644 --- a/src/view/shell/bottom-bar/BottomBar.tsx +++ b/src/view/shell/bottom-bar/BottomBar.tsx @@ -145,7 +145,7 @@ export const BottomBar = observer(({navigation}: BottomTabBarProps) => { accessibilityLabel="Notifications" accessibilityHint={ notifications.unreadCountLabel === '' - ? 'No new notifications' + ? '' : `${notifications.unreadCountLabel} unread` } /> -- cgit 1.4.1