|
@@ -7,14 +7,13 @@ import {
|
|
|
|
|
|
|
|
export type DeletePluginModalProps = {
|
|
export type DeletePluginModalProps = {
|
|
|
isShown: boolean,
|
|
isShown: boolean,
|
|
|
- errorMessage: string,
|
|
|
|
|
cancelToDelete: () => void,
|
|
cancelToDelete: () => void,
|
|
|
confirmToDelete: () => void,
|
|
confirmToDelete: () => void,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export const DeletePluginModal = (props: DeletePluginModalProps): JSX.Element => {
|
|
export const DeletePluginModal = (props: DeletePluginModalProps): JSX.Element => {
|
|
|
const {
|
|
const {
|
|
|
- isShown, errorMessage, cancelToDelete, confirmToDelete,
|
|
|
|
|
|
|
+ isShown, cancelToDelete, confirmToDelete,
|
|
|
} = props;
|
|
} = props;
|
|
|
|
|
|
|
|
const headerContent = () => {
|
|
const headerContent = () => {
|
|
@@ -23,7 +22,6 @@ export const DeletePluginModal = (props: DeletePluginModalProps): JSX.Element =>
|
|
|
}
|
|
}
|
|
|
return (
|
|
return (
|
|
|
<span>
|
|
<span>
|
|
|
- <i className="icon-fw icon-fire"></i>
|
|
|
|
|
Delete plugin?
|
|
Delete plugin?
|
|
|
</span>
|
|
</span>
|
|
|
);
|
|
);
|
|
@@ -36,7 +34,7 @@ export const DeletePluginModal = (props: DeletePluginModalProps): JSX.Element =>
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
- <p className="card well comment-body mt-2 p-2">本当に削除しますか?</p>
|
|
|
|
|
|
|
+ <p className="card well mt-2 p-2">本当に削除しますか?</p>
|
|
|
</>
|
|
</>
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|
|
@@ -47,10 +45,8 @@ export const DeletePluginModal = (props: DeletePluginModalProps): JSX.Element =>
|
|
|
}
|
|
}
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
- <span className="text-danger">{errorMessage}</span>
|
|
|
|
|
<Button onClick={cancelToDelete}>Cancel</Button>
|
|
<Button onClick={cancelToDelete}>Cancel</Button>
|
|
|
<Button color="danger" onClick={confirmToDelete}>
|
|
<Button color="danger" onClick={confirmToDelete}>
|
|
|
- <i className="icon icon-fire"></i>
|
|
|
|
|
Delete
|
|
Delete
|
|
|
</Button>
|
|
</Button>
|
|
|
</>
|
|
</>
|