Merge pull request #692 from bluesky-social/ollie/unread-notifications
Update hint for notificationszio/stable
commit
0ca096138a
|
@ -222,7 +222,11 @@ export const DrawerContent = observer(() => {
|
||||||
}
|
}
|
||||||
label="Notifications"
|
label="Notifications"
|
||||||
accessibilityLabel="Notifications"
|
accessibilityLabel="Notifications"
|
||||||
accessibilityHint={`${store.me.notifications.unreadCountLabel} unread`}
|
accessibilityHint={
|
||||||
|
notifications.unreadCountLabel === ''
|
||||||
|
? ''
|
||||||
|
: `${notifications.unreadCountLabel} unread`
|
||||||
|
}
|
||||||
count={notifications.unreadCountLabel}
|
count={notifications.unreadCountLabel}
|
||||||
bold={isAtNotifications}
|
bold={isAtNotifications}
|
||||||
onPress={onPressNotifications}
|
onPress={onPressNotifications}
|
||||||
|
|
|
@ -38,6 +38,7 @@ export const BottomBar = observer(({navigation}: BottomTabBarProps) => {
|
||||||
useNavigationTabState()
|
useNavigationTabState()
|
||||||
|
|
||||||
const {footerMinimalShellTransform} = useMinimalShellMode()
|
const {footerMinimalShellTransform} = useMinimalShellMode()
|
||||||
|
const {notifications} = store.me
|
||||||
|
|
||||||
const onPressTab = React.useCallback(
|
const onPressTab = React.useCallback(
|
||||||
(tab: string) => {
|
(tab: string) => {
|
||||||
|
@ -138,11 +139,15 @@ export const BottomBar = observer(({navigation}: BottomTabBarProps) => {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
onPress={onPressNotifications}
|
onPress={onPressNotifications}
|
||||||
notificationCount={store.me.notifications.unreadCountLabel}
|
notificationCount={notifications.unreadCountLabel}
|
||||||
accessible={true}
|
accessible={true}
|
||||||
accessibilityRole="tab"
|
accessibilityRole="tab"
|
||||||
accessibilityLabel="Notifications"
|
accessibilityLabel="Notifications"
|
||||||
accessibilityHint={`${store.me.notifications.unreadCountLabel} unread`}
|
accessibilityHint={
|
||||||
|
notifications.unreadCountLabel === ''
|
||||||
|
? ''
|
||||||
|
: `${notifications.unreadCountLabel} unread`
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
<Btn
|
<Btn
|
||||||
testID="bottomBarProfileBtn"
|
testID="bottomBarProfileBtn"
|
||||||
|
|
Loading…
Reference in New Issue