Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import React, { FunctionComponent } from 'react';

import { Alert } from 'app/components/Alert';
import { useOvermind } from 'app/overmind';

const DeleteProfileSandboxModal: FunctionComponent = () => {
export const DeleteProfileSandboxModal: FunctionComponent = () => {
const {
actions: {
modalClosed,
profile: { sandboxDeleted },
},
} = useOvermind();

return (
<Alert
title="Delete Sandbox"
body="Are you sure you want to delete this sandbox?"
onCancel={() => modalClosed()}
onConfirm={() => sandboxDeleted()}
title="Delete Sandbox"
/>
);
}

export default DeleteProfileSandboxModal;
};
2 changes: 1 addition & 1 deletion packages/app/src/app/pages/common/Modals/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { ThemeProvider } from 'styled-components';

import CommitModal from './CommitModal';
import { DeleteDeploymentModal } from './DeleteDeploymentModal';
import DeleteProfileSandboxModal from './DeleteProfileSandboxModal';
import { DeleteProfileSandboxModal } from './DeleteProfileSandboxModal';
import DeleteSandboxModal from './DeleteSandboxModal';
import DeploymentModal from './DeploymentModal';
import { EmptyTrash } from './EmptyTrash';
Expand Down