Skip to content

Commit baa3367

Browse files
🔨 Refactor, 🧠 Overmind Hacktober | DeleteProfileSandboxModal… (#2744)
🔨 Refactor, 🧠 Overmind Hacktober | DeleteProfileSandboxModal to use useOvermind
2 parents 4ecd850 + 8055b68 commit baa3367

File tree

2 files changed

+22
-16
lines changed

2 files changed

+22
-16
lines changed

packages/app/src/app/pages/common/Modals/DeleteProfileSandboxModal/index.js

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React, { FunctionComponent } from 'react';
2+
import { Alert } from 'app/components/Alert';
3+
import { useOvermind } from 'app/overmind';
4+
5+
const DeleteProfileSandboxModal: FunctionComponent = () => {
6+
const {
7+
actions: {
8+
modalClosed,
9+
profile: { sandboxDeleted },
10+
},
11+
} = useOvermind();
12+
return (
13+
<Alert
14+
title="Delete Sandbox"
15+
body="Are you sure you want to delete this sandbox?"
16+
onCancel={() => modalClosed()}
17+
onConfirm={() => sandboxDeleted()}
18+
/>
19+
);
20+
}
21+
22+
export default DeleteProfileSandboxModal;

0 commit comments

Comments
 (0)