mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Update i18next type
This commit is contained in:
@ -129,7 +129,7 @@ const useProfileMutation = () => {
|
||||
displayMessage({
|
||||
ref: variables.messageRef,
|
||||
message: i18next.t('screenTabs:me.profile.feedback.failed', {
|
||||
type: i18next.t(`screenTabs:${variables.message.text}`)
|
||||
type: i18next.t(`screenTabs:${variables.message.text}` as any)
|
||||
}),
|
||||
...(err && { description: err.message }),
|
||||
type: 'danger'
|
||||
@ -142,7 +142,7 @@ const useProfileMutation = () => {
|
||||
displayMessage({
|
||||
ref: variables.messageRef,
|
||||
message: i18next.t('screenTabs:me.profile.feedback.succeed', {
|
||||
type: i18next.t(`screenTabs:${variables.message.text}`)
|
||||
type: i18next.t(`screenTabs:${variables.message.text}` as any)
|
||||
}),
|
||||
type: 'success'
|
||||
})
|
||||
|
@ -70,7 +70,7 @@ export const setChannels = async (instance: InstanceLatest, reset: boolean | und
|
||||
const setChannel = async (type: string) =>
|
||||
Notifications.setNotificationChannelAsync(`${account}_${type}`, {
|
||||
groupId: account,
|
||||
name: i18n.t(`screenTabs:me.push.${type}.heading`),
|
||||
name: i18n.t(`screenTabs:me.push.${type}.heading` as any),
|
||||
importance: Notifications.AndroidImportance.DEFAULT,
|
||||
bypassDnd: false,
|
||||
showBadge: true,
|
||||
|
Reference in New Issue
Block a user