Skip to content

Commit 1321f26

Browse files
committed
🔨 Switch DeleteProfileSandboxModal to use useOvermind
1 parent 729d375 commit 1321f26

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
import React, { FunctionComponent } from 'react';
2+
23
import { Alert } from 'app/components/Alert';
34
import { useOvermind } from 'app/overmind';
45

5-
const DeleteProfileSandboxModal: FunctionComponent = () => {
6+
export const DeleteProfileSandboxModal: FunctionComponent = () => {
67
const {
78
actions: {
89
modalClosed,
910
profile: { sandboxDeleted },
1011
},
1112
} = useOvermind();
13+
1214
return (
1315
<Alert
14-
title="Delete Sandbox"
1516
body="Are you sure you want to delete this sandbox?"
1617
onCancel={() => modalClosed()}
1718
onConfirm={() => sandboxDeleted()}
19+
title="Delete Sandbox"
1820
/>
1921
);
20-
}
21-
22-
export default DeleteProfileSandboxModal;
22+
};

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { ThemeProvider } from 'styled-components';
1010

1111
import CommitModal from './CommitModal';
1212
import DeleteDeploymentModal from './DeleteDeploymentModal';
13-
import DeleteProfileSandboxModal from './DeleteProfileSandboxModal';
13+
import { DeleteProfileSandboxModal } from './DeleteProfileSandboxModal';
1414
import DeleteSandboxModal from './DeleteSandboxModal';
1515
import DeploymentModal from './DeploymentModal';
1616
import EmptyTrash from './EmptyTrash';

0 commit comments

Comments
 (0)