Username recovery improvements

This commit is contained in:
Fedor Indutny 2024-02-06 10:35:59 -08:00 committed by GitHub
parent a70ae1060d
commit 533a1b32d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 423 additions and 99 deletions

View file

@ -476,6 +476,16 @@ export function renderToast({
);
}
if (toastType === ToastType.UsernameRecovered) {
return (
<Toast onClose={hideToast}>
{i18n('icu:EditUsernameModalBody__username-recovered__text', {
username: toast.parameters.username,
})}
</Toast>
);
}
if (toastType === ToastType.UserAddedToGroup) {
return (
<Toast onClose={hideToast}>