diff --git a/packages/frontend/src/components/projects/Dialog/CancelDeploymentDialog.tsx b/packages/frontend/src/components/projects/Dialog/CancelDeploymentDialog.tsx
new file mode 100644
index 00000000..f238788d
--- /dev/null
+++ b/packages/frontend/src/components/projects/Dialog/CancelDeploymentDialog.tsx
@@ -0,0 +1,30 @@
+import ConfirmDialog, {
+ ConfirmDialogProps,
+} from 'components/shared/ConfirmDialog';
+import React from 'react';
+
+interface CancelDeploymentDialogProps extends ConfirmDialogProps {}
+
+export const CancelDeploymentDialog = ({
+ open,
+ handleCancel,
+ handleConfirm,
+ ...props
+}: CancelDeploymentDialogProps) => {
+ return (
+
+
+ This will halt the deployment and you'll have to start the process
+ from scratch.
+
+
+ );
+};
diff --git a/packages/frontend/src/components/projects/create/Deploy.tsx b/packages/frontend/src/components/projects/create/Deploy.tsx
index a251773d..f443d5ed 100644
--- a/packages/frontend/src/components/projects/create/Deploy.tsx
+++ b/packages/frontend/src/components/projects/create/Deploy.tsx
@@ -1,14 +1,12 @@
import React, { useCallback, useEffect } from 'react';
import { useNavigate, useParams, useSearchParams } from 'react-router-dom';
-import { Typography } from '@material-tailwind/react';
-
import { DeployStep, DeployStatus } from './DeployStep';
-import { Stopwatch, setStopWatchOffset } from '../../StopWatch';
-import ConfirmDialog from 'components/shared/ConfirmDialog';
+import { Stopwatch, setStopWatchOffset } from 'components/StopWatch';
import { Heading } from 'components/shared/Heading';
import { Button } from 'components/shared/Button';
import { ClockOutlineIcon, WarningIcon } from 'components/shared/CustomIcon';
+import { CancelDeploymentDialog } from 'components/projects/Dialog/CancelDeploymentDialog';
const TIMEOUT_DURATION = 5000;
const Deploy = () => {
@@ -55,19 +53,11 @@ const Deploy = () => {
>
Cancel
-
-
- This will halt the deployment and you will have to start the process
- from scratch.
-
-
+ />