Add toast when import errors

This commit is contained in:
trevor-signal 2024-11-15 17:01:11 -05:00 committed by GitHub
parent cce9670abd
commit e819bfe4eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 50 additions and 1 deletions

View file

@ -309,6 +309,20 @@ export function renderToast({
);
}
if (toastType === ToastType.FailedToImportBackup) {
return (
<Toast
onClose={hideToast}
toastAction={{
label: i18n('icu:Toast__ActionLabel--SubmitLog'),
onClick: onShowDebugLog,
}}
>
{i18n('icu:Toast--FailedToImportBackup')}
</Toast>
);
}
if (toastType === ToastType.FileSaved) {
return (
<Toast