Просмотр исходного кода

125483 apply common to plugin card

soumaeda 2 лет назад
Родитель
Сommit
b9893f0c0b

+ 1 - 3
apps/app/src/features/growi-plugin/client/components/Admin/PluginsExtensionPageContents/PluginCard.tsx

@@ -5,7 +5,6 @@ import Link from 'next/link';
 
 import { apiv3Put } from '~/client/util/apiv3-client';
 import { toastSuccess, toastError } from '~/client/util/toastr';
-import { usePluginDeleteModal } from '~/stores/modal';
 
 import styles from './PluginCard.module.scss';
 
@@ -26,7 +25,6 @@ export const PluginCard = (props: Props): JSX.Element => {
   } = props;
 
   const { t } = useTranslation('admin');
-  const { open: openPluginDeleteModal } = usePluginDeleteModal();
 
   const PluginCardButton = (): JSX.Element => {
     const [isEnabled, setState] = useState<boolean>(isEnalbed);
@@ -80,7 +78,7 @@ export const PluginCard = (props: Props): JSX.Element => {
           className="btn btn-primary"
           onClick={props.onDelete}
         >
-          {t('plugins.delete')}
+          {t('Delete')}
         </button>
       </div>
     );

+ 0 - 1
apps/app/src/stores/modal.tsx

@@ -13,7 +13,6 @@ import {
 import { IUserGroupHasId } from '~/interfaces/user';
 import loggerFactory from '~/utils/logger';
 
-import { useSWRxAdminPlugins } from '../features/growi-plugin/client/stores/admin-plugins';
 import type { IGrowiPluginHasId } from '../features/growi-plugin/interfaces';
 
 import { useStaticSWR } from './use-static-swr';