Yuki Takei 3 лет назад
Родитель
Сommit
af979b7c36
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      packages/app/src/components/Admin/PluginsExtension/PluginInstallerForm.tsx

+ 1 - 4
packages/app/src/components/Admin/PluginsExtension/PluginInstallerForm.tsx

@@ -1,9 +1,7 @@
 import React, { useCallback } from 'react';
 import React, { useCallback } from 'react';
 
 
-import { useTranslation } from 'react-i18next';
-
-import { toastSuccess, toastError } from '~/client/util/apiNotification';
 import { apiv3Post } from '~/client/util/apiv3-client';
 import { apiv3Post } from '~/client/util/apiv3-client';
+import { toastError, toastSuccess } from '~/client/util/toastr';
 
 
 import AdminInstallButtonRow from '../Common/AdminUpdateButtonRow';
 import AdminInstallButtonRow from '../Common/AdminUpdateButtonRow';
 // TODO: error notification (toast, loggerFactory)
 // TODO: error notification (toast, loggerFactory)
@@ -35,7 +33,6 @@ export const PluginInstallerForm = (): JSX.Element => {
     }
     }
     catch (err) {
     catch (err) {
       toastError(err);
       toastError(err);
-      // logger.error(err);
     }
     }
   }, []);
   }, []);