From b09094c235269cfa5cd2ce6e7e192490150b0b0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Thu, 3 Oct 2019 15:23:02 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Switch=20DeleteProfileSandboxMod?= =?UTF-8?q?al=20to=20use=20useOvermind?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/Modals/DeleteProfileSandboxModal/index.tsx | 10 +++++----- packages/app/src/app/pages/common/Modals/index.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/app/src/app/pages/common/Modals/DeleteProfileSandboxModal/index.tsx b/packages/app/src/app/pages/common/Modals/DeleteProfileSandboxModal/index.tsx index 7f8d0ce02ea..f5d6ddbab7e 100644 --- a/packages/app/src/app/pages/common/Modals/DeleteProfileSandboxModal/index.tsx +++ b/packages/app/src/app/pages/common/Modals/DeleteProfileSandboxModal/index.tsx @@ -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 ( modalClosed()} onConfirm={() => sandboxDeleted()} + title="Delete Sandbox" /> ); -} - -export default DeleteProfileSandboxModal; +}; diff --git a/packages/app/src/app/pages/common/Modals/index.js b/packages/app/src/app/pages/common/Modals/index.js index 403f9813890..7fc97268c69 100644 --- a/packages/app/src/app/pages/common/Modals/index.js +++ b/packages/app/src/app/pages/common/Modals/index.js @@ -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';