We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e11c3ea commit 2006d65Copy full SHA for 2006d65
packages/app/src/app/pages/common/Modals/DeleteDeploymentModal/index.js
packages/app/src/app/pages/common/Modals/DeleteDeploymentModal/index.tsx
@@ -0,0 +1,23 @@
1
+import React, { FunctionComponent } from 'react';
2
+import { Alert } from 'app/components/Alert';
3
+import { useOvermind } from 'app/overmind';
4
+
5
+const DeleteDeploymentModal: FunctionComponent = () => {
6
+ const {
7
+ actions: {
8
+ modalClosed,
9
+ deployment: { deleteDeployment },
10
+ },
11
+ } = useOvermind();
12
13
+ return (
14
+ <Alert
15
+ title="Delete Deployment"
16
+ body={<span>Are you sure you want to delete this Deployment?</span>}
17
+ onCancel={() => modalClosed()}
18
+ onConfirm={() => deleteDeployment()}
19
+ />
20
+ );
21
+};
22
23
+export default DeleteDeploymentModal;
0 commit comments