diff --git a/packages/frontend/src/components/projects/Dialog/TransferProjectDialog.tsx b/packages/frontend/src/components/projects/Dialog/TransferProjectDialog.tsx
new file mode 100644
index 00000000..7d26ab93
--- /dev/null
+++ b/packages/frontend/src/components/projects/Dialog/TransferProjectDialog.tsx
@@ -0,0 +1,47 @@
+import ConfirmDialog, {
+ ConfirmDialogProps,
+} from 'components/shared/ConfirmDialog';
+import React from 'react';
+
+interface TransferProjectDialogProps extends ConfirmDialogProps {
+ projectName: string;
+ from: string;
+ to: string;
+}
+
+export const TransferProjectDialog = ({
+ projectName,
+ from,
+ to,
+ open,
+ handleCancel,
+ handleConfirm,
+ ...props
+}: TransferProjectDialogProps) => {
+ return (
+
+
+ Upon confirmation, your project{' '}
+
+ {projectName}
+ {' '}
+ will be transferred from{' '}
+
+ {from}
+ {' '}
+ to{' '}
+
+ {to}
+
+ .
+
+
+ );
+};
diff --git a/packages/frontend/src/pages/org-slug/projects/id/settings/General.tsx b/packages/frontend/src/pages/org-slug/projects/id/settings/General.tsx
index 22d42089..8c1d0bd7 100644
--- a/packages/frontend/src/pages/org-slug/projects/id/settings/General.tsx
+++ b/packages/frontend/src/pages/org-slug/projects/id/settings/General.tsx
@@ -6,11 +6,11 @@ import { Organization } from 'gql-client';
import { Button, Typography, Input, Option } from '@material-tailwind/react';
-import DeleteProjectDialog from '../../../../../components/projects/project/settings/DeleteProjectDialog';
-import ConfirmDialog from '../../../../../components/shared/ConfirmDialog';
-import { useGQLClient } from '../../../../../context/GQLClientContext';
-import AsyncSelect from '../../../../../components/shared/AsyncSelect';
-import { OutletContextType } from '../../../../../types';
+import DeleteProjectDialog from 'components/projects/project/settings/DeleteProjectDialog';
+import { useGQLClient } from 'context/GQLClientContext';
+import AsyncSelect from 'components/shared/AsyncSelect';
+import { OutletContextType } from 'types';
+import { TransferProjectDialog } from 'components/projects/Dialog/TransferProjectDialog';
const CopyIcon = ({ value }: { value: string }) => {
return (
@@ -230,19 +230,14 @@ const GeneralTabPanel = () => {
Transfer
- setOpenTransferDialog(!openTransferDialog)}
+ setOpenTransferDialog(!openTransferDialog)}
open={openTransferDialog}
- confirmButtonTitle="Yes, Confirm transfer"
handleConfirm={handleTransferProject}
- color="blue"
- >
-
- Upon confirmation, your project {project.name} will be transferred
- from {project.organization.name} to {selectedUserOrgName}.
-
-
+ projectName={project.name}
+ from={project.organization.name}
+ to={selectedUserOrgName}
+ />