@@ -51,7 +51,7 @@ export function Component() {
|
||||
} else {
|
||||
await agent.com.atproto.server.updateEmail({email: email.trim()})
|
||||
await agent.resumeSession(agent.session!)
|
||||
Toast.show(_(msg`Email updated`))
|
||||
Toast.show(_(msg({message: 'Email updated', context: 'toast'})))
|
||||
setStage(Stages.Done)
|
||||
}
|
||||
} catch (e) {
|
||||
@@ -80,7 +80,7 @@ export function Component() {
|
||||
token: confirmationCode.trim(),
|
||||
})
|
||||
await agent.resumeSession(agent.session!)
|
||||
Toast.show(_(msg`Email updated`))
|
||||
Toast.show(_(msg({message: 'Email updated', context: 'toast'})))
|
||||
setStage(Stages.Done)
|
||||
} catch (e) {
|
||||
setError(cleanError(String(e)))
|
||||
|
||||
@@ -159,8 +159,8 @@ export function Component({
|
||||
})
|
||||
Toast.show(
|
||||
isCurateList
|
||||
? _(msg`User list updated`)
|
||||
: _(msg`Moderation list updated`),
|
||||
? _(msg({message: 'User list updated', context: 'toast'}))
|
||||
: _(msg({message: 'Moderation list updated', context: 'toast'})),
|
||||
)
|
||||
onSave?.(list.uri)
|
||||
} else {
|
||||
@@ -173,8 +173,8 @@ export function Component({
|
||||
})
|
||||
Toast.show(
|
||||
isCurateList
|
||||
? _(msg`User list created`)
|
||||
: _(msg`Moderation list created`),
|
||||
? _(msg({message: 'User list created', context: 'toast'}))
|
||||
: _(msg({message: 'Moderation list created', context: 'toast'})),
|
||||
)
|
||||
onSave?.(res.uri)
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ export function Component({
|
||||
newUserAvatar,
|
||||
newUserBanner,
|
||||
})
|
||||
Toast.show(_(msg`Profile updated`))
|
||||
Toast.show(_(msg({message: 'Profile updated', context: 'toast'})))
|
||||
onUpdate?.()
|
||||
closeModal()
|
||||
} catch (e: any) {
|
||||
|
||||
@@ -82,7 +82,7 @@ export function Component({
|
||||
token: confirmationCode.trim(),
|
||||
})
|
||||
await agent.resumeSession(agent.session!)
|
||||
Toast.show(_(msg`Email verified`))
|
||||
Toast.show(_(msg({message: 'Email verified', context: 'toast'})))
|
||||
closeModal()
|
||||
onSuccess?.()
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user