@@ -88,7 +88,7 @@ function DialogInner() {
|
||||
},
|
||||
onSuccess: () => {
|
||||
control.close()
|
||||
Toast.show(_(msg`Appeal submitted`))
|
||||
Toast.show(_(msg({message: 'Appeal submitted', context: 'toast'})))
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ function Inner({preferences}: {preferences: UsePreferencesQueryResponse}) {
|
||||
threadgateAllowUISettingToAllowRecordValue(maybeEditedAllowUI),
|
||||
postgateEmbeddingRules: maybeEditedPostgate.embeddingRules ?? [],
|
||||
})
|
||||
Toast.show(_(msg`Settings saved`))
|
||||
Toast.show(_(msg({message: 'Settings saved', context: 'toast'})))
|
||||
} catch (e: any) {
|
||||
logger.error(`Failed to save post interaction settings`, {
|
||||
source: 'ModerationInteractionSettingsScreen',
|
||||
|
||||
@@ -188,7 +188,7 @@ function DialogInner({
|
||||
})
|
||||
onUpdate?.()
|
||||
control.close()
|
||||
Toast.show(_(msg`Profile updated`))
|
||||
Toast.show(_(msg({message: 'Profile updated', context: 'toast'})))
|
||||
} catch (e: any) {
|
||||
logger.error('Failed to update user profile', {message: String(e)})
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ let ProfileHeaderStandard = ({
|
||||
const unblockAccount = React.useCallback(async () => {
|
||||
try {
|
||||
await queueUnblock()
|
||||
Toast.show(_(msg`Account unblocked`))
|
||||
Toast.show(_(msg({message: 'Account unblocked', context: 'toast'})))
|
||||
} catch (e: any) {
|
||||
if (e?.name !== 'AbortError') {
|
||||
logger.error('Failed to unblock account', {message: e})
|
||||
|
||||
@@ -77,8 +77,18 @@ export function AboutSettingsScreen({}: Props) {
|
||||
setDevModeEnabled(newDevModeEnabled)
|
||||
Toast.show(
|
||||
newDevModeEnabled
|
||||
? _(msg`Developer mode enabled`)
|
||||
: _(msg`Developer mode disabled`),
|
||||
? _(
|
||||
msg({
|
||||
message: 'Developer mode enabled',
|
||||
context: 'toast',
|
||||
}),
|
||||
)
|
||||
: _(
|
||||
msg({
|
||||
message: 'Developer mode disabled',
|
||||
context: 'toast',
|
||||
}),
|
||||
),
|
||||
)
|
||||
}}
|
||||
onPress={() => {
|
||||
|
||||
@@ -144,7 +144,7 @@ function AppPasswordCard({
|
||||
|
||||
const onDelete = useCallback(async () => {
|
||||
await deleteMutation({name: appPassword.name})
|
||||
Toast.show(_(msg`App password deleted`))
|
||||
Toast.show(_(msg({message: 'App password deleted', context: 'toast'})))
|
||||
}, [deleteMutation, appPassword.name, _])
|
||||
|
||||
return (
|
||||
|
||||
@@ -61,7 +61,7 @@ export function DisableEmail2FADialog({
|
||||
emailAuthFactor: false,
|
||||
})
|
||||
await agent.resumeSession(agent.session!)
|
||||
Toast.show(_(msg`Email 2FA disabled`))
|
||||
Toast.show(_(msg({message: 'Email 2FA disabled', context: 'toast'})))
|
||||
}
|
||||
control.close()
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user