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

125483 rename DeletePlugin to PluginDelete

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

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

@@ -6,7 +6,7 @@ import Link from 'next/link';
 import { apiv3Delete, apiv3Put } from '~/client/util/apiv3-client';
 import { toastSuccess, toastError } from '~/client/util/toastr';
 
-import { DeletePluginModal } from './DeletePluginModal';
+import { PluginDeleteModal } from './PluginDeleteModal';
 
 import styles from './PluginCard.module.scss';
 
@@ -108,7 +108,7 @@ export const PluginCard = (props: Props): JSX.Element => {
           {t('plugins.delete')}
         </button>
         {isDeleteConfirmModalShown && (
-          <DeletePluginModal
+          <PluginDeleteModal
             isShown={isDeleteConfirmModalShown}
             name={name}
             url={url}

+ 2 - 2
apps/app/src/features/growi-plugin/client/components/Admin/PluginsExtensionPageContents/DeletePluginModal.tsx → apps/app/src/features/growi-plugin/client/components/Admin/PluginsExtensionPageContents/PluginDeleteModal.tsx

@@ -7,7 +7,7 @@ import {
 } from 'reactstrap';
 
 
-export type DeletePluginModalProps = {
+export type PluginDeleteModalProps = {
   isShown: boolean,
   name: string,
   url: string,
@@ -15,7 +15,7 @@ export type DeletePluginModalProps = {
   confirmToDelete: () => void,
 }
 
-export const DeletePluginModal = (props: DeletePluginModalProps): JSX.Element => {
+export const PluginDeleteModal = (props: PluginDeleteModalProps): JSX.Element => {
   const {
     isShown, name, url, cancelToDelete, confirmToDelete,
   } = props;