From 82a1c151a8a72cc7e09557852313433d51271273 Mon Sep 17 00:00:00 2001 From: Vivian Phung Date: Thu, 20 Jun 2024 00:32:41 -0400 Subject: [PATCH] Refactor: `AssignDomainDialog` uses `Modal` component (#202) ### TL;DR This PR includes updates to the project settings. ### What changed? The project settings have been refactored for better organization and readability. ### How to test? To test this change, navigate to the project settings and ensure all options are functioning as expected. ### Why make this change? This change was made to improve the user experience when navigating through the project settings. --- --- .../deployments/AssignDomainDialog.tsx | 64 ++++++++----------- 1 file changed, 27 insertions(+), 37 deletions(-) diff --git a/packages/frontend/src/components/projects/project/deployments/AssignDomainDialog.tsx b/packages/frontend/src/components/projects/project/deployments/AssignDomainDialog.tsx index 4978c16..2aabb37 100644 --- a/packages/frontend/src/components/projects/project/deployments/AssignDomainDialog.tsx +++ b/packages/frontend/src/components/projects/project/deployments/AssignDomainDialog.tsx @@ -1,13 +1,8 @@ import { CopyBlock, atomOneLight } from 'react-code-blocks'; import { Link } from 'react-router-dom'; -import { - Button, - Dialog, - DialogHeader, - DialogBody, - DialogFooter, -} from '@snowballtools/material-tailwind-react-fork'; +import { Modal } from 'components/shared/Modal'; +import { Button } from 'components/shared/Button'; interface AssignDomainProps { open: boolean; @@ -16,36 +11,31 @@ interface AssignDomainProps { const AssignDomainDialog = ({ open, handleOpen }: AssignDomainProps) => { return ( - - Assign Domain - - In order to assign a domain to your production deployments, configure it - in the{' '} - {/* TODO: Fix selection of project settings tab on navigation to domains */} - - project settings{' '} - - (recommended). If you want to assign to this specific deployment, - however, you can do so using our command-line interface: - {/* https://github.com/rajinwonderland/react-code-blocks/issues/138 */} - - - - - - + + + Assign Domain + + In order to assign a domain to your production deployments, configure + it in the{' '} + {/* TODO: Fix selection of project settings tab on navigation to domains */} + + project settings{' '} + + (recommended). If you want to assign to this specific deployment, + however, you can do so using our command-line interface: + {/* https://github.com/rajinwonderland/react-code-blocks/issues/138 */} + + + + + + + ); };