소스 검색

use new toastr utils

Yuki Takei 3 년 전
부모
커밋
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 { useTranslation } from 'react-i18next';
-
-import { toastSuccess, toastError } from '~/client/util/apiNotification';
 import { apiv3Post } from '~/client/util/apiv3-client';
+import { toastError, toastSuccess } from '~/client/util/toastr';
 
 import AdminInstallButtonRow from '../Common/AdminUpdateButtonRow';
 // TODO: error notification (toast, loggerFactory)
@@ -35,7 +33,6 @@ export const PluginInstallerForm = (): JSX.Element => {
     }
     catch (err) {
       toastError(err);
-      // logger.error(err);
     }
   }, []);