1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Push add more types

This commit is contained in:
Zhiyuan Zheng
2022-05-29 01:57:15 +02:00
parent 242b11761b
commit 6b4c2d18ec
7 changed files with 48 additions and 4 deletions

View File

@@ -73,12 +73,22 @@ const TabMePush: React.FC = () => {
const alerts = useMemo(() => {
return instancePush?.alerts
? (
['follow', 'favourite', 'reblog', 'mention', 'poll'] as [
[
'follow',
'follow_request',
'favourite',
'reblog',
'mention',
'poll'
'poll',
'status'
] as [
'follow',
'follow_request',
'favourite',
'reblog',
'mention',
'poll',
'status'
]
).map(alert => (
<MenuRow

View File

@@ -14,7 +14,7 @@ import { useDispatch, useSelector } from 'react-redux'
const TabMeSettingsLanguage: React.FC<
TabMeStackScreenProps<'Tab-Me-Settings-Language'>
> = () => {
> = ({ navigation }) => {
const { i18n, t } = useTranslation('screenTabs')
const languages = Object.entries(LOCALES)
const instances = useSelector(getInstances)
@@ -72,6 +72,8 @@ const TabMeSettingsLanguage: React.FC<
}
})
}
navigation.pop(1)
}
return (