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 4ebdbab commit e41965bCopy full SHA for e41965b
βpackages/app/src/app/pages/common/Modals/DeleteSandboxModal/index.jsβ
βpackages/app/src/app/pages/common/Modals/DeleteSandboxModal/index.tsxβ
@@ -0,0 +1,24 @@
1
+import React, { FunctionComponent } from 'react';
2
+
3
+import { Alert } from 'app/components/Alert';
4
+import { useOvermind } from 'app/overmind';
5
6
+const DeleteSandboxModal: FunctionComponent = () => {
7
+ const {
8
+ actions: {
9
+ modalClosed,
10
+ workspace: { sandboxDeleted },
11
+ },
12
+ } = useOvermind();
13
14
+ return (
15
+ <Alert
16
+ title="Delete Sandbox"
17
+ body="Are you sure you want to delete this sandbox?"
18
+ onCancel={() => modalClosed()}
19
+ onConfirm={() => sandboxDeleted()}
20
+ />
21
+ );
22
+};
23
24
+export default DeleteSandboxModal;
0 commit comments