Unsupported OS Dialog

This commit is contained in:
Fedor Indutny 2023-01-18 15:31:10 -08:00 committed by GitHub
parent c6e184016b
commit ac50af52d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 776 additions and 224 deletions

View file

@ -12,6 +12,7 @@ export type PropsType = {
hideToast: () => unknown;
i18n: LocalizerType;
openFileInFolder: (target: string) => unknown;
OS: string;
onUndoArchive: (conversaetionId: string) => unknown;
toast?: {
toastType: ToastType;
@ -26,6 +27,7 @@ export function ToastManager({
i18n,
openFileInFolder,
onUndoArchive,
OS,
toast,
}: PropsType): JSX.Element | null {
if (toast === undefined) {
@ -320,6 +322,14 @@ export function ToastManager({
);
}
if (toastType === ToastType.UnsupportedOS) {
return (
<Toast onClose={hideToast}>
{i18n('icu:UnsupportedOSErrorToast', { OS })}
</Toast>
);
}
if (toastType === ToastType.UserAddedToGroup) {
return (
<Toast onClose={hideToast}>