1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
xmflsct
2022-12-09 21:09:00 +01:00
parent 44f83e44b9
commit 1b58bcad3e
25 changed files with 267 additions and 254 deletions

View File

@ -50,10 +50,7 @@ const Collections: React.FC = () => {
}
}, [announcementsQuery.data])
const instancePush = useSelector(
getInstancePush,
(prev, next) => prev?.global.value === next?.global.value
)
const instancePush = useSelector(getInstancePush, (prev, next) => prev?.global === next?.global)
return (
<MenuContainer>
@ -102,11 +99,7 @@ const Collections: React.FC = () => {
iconFront={instancePush ? 'Bell' : 'BellOff'}
iconBack='ChevronRight'
title={t('me.stacks.push.name')}
content={
instancePush.global.value
? t('me.root.push.content.enabled')
: t('me.root.push.content.disabled')
}
content={t('me.root.push.content', { context: instancePush.global.toString() })}
onPress={() => navigation.navigate('Tab-Me-Push')}
/>
</MenuContainer>