Custom Discriminator in EditUsernameModalBody

This commit is contained in:
Fedor Indutny
2024-01-18 11:53:24 -08:00
committed by GitHub
parent fa3937e084
commit 38914a45cb
26 changed files with 615 additions and 165 deletions
+6
View File
@@ -392,5 +392,11 @@ export function ToastManager({
);
}
if (toastType === ToastType.WhoCanFindMeReadOnly) {
return (
<Toast onClose={hideToast}>{i18n('icu:WhoCanFindMeReadOnlyToast')}</Toast>
);
}
throw missingCaseError(toastType);
}