From cff9a5b2ea7357ae57eb36605c94c2dd9d26268a Mon Sep 17 00:00:00 2001 From: Vivian Phung Date: Thu, 20 Jun 2024 00:40:32 -0400 Subject: [PATCH] [nit] `DeploymentMenu` dependencies cleanup (#204) ### TL;DR This PR updates 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. --- --- .../project/deployments/DeploymentMenu.tsx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/frontend/src/components/projects/project/deployments/DeploymentMenu.tsx b/packages/frontend/src/components/projects/project/deployments/DeploymentMenu.tsx index 3b82c861..51532f34 100644 --- a/packages/frontend/src/components/projects/project/deployments/DeploymentMenu.tsx +++ b/packages/frontend/src/components/projects/project/deployments/DeploymentMenu.tsx @@ -1,4 +1,12 @@ -import { useState } from 'react'; +import { useState, ComponentPropsWithRef } from 'react'; + +import { + Menu, + MenuHandler, + MenuItem, + MenuList, +} from '@snowballtools/material-tailwind-react-fork'; + import { Deployment, Domain, Environment, Project } from 'gql-client'; import { Button } from 'components/shared/Button'; import { @@ -10,13 +18,6 @@ import { UndoIcon, CrossCircleIcon, } from 'components/shared/CustomIcon'; -import { - Menu, - MenuHandler, - MenuItem, - MenuList, -} from '@snowballtools/material-tailwind-react-fork'; -import { ComponentPropsWithRef } from 'react'; import AssignDomainDialog from './AssignDomainDialog'; import { useGQLClient } from 'context/GQLClientContext'; import { cn } from 'utils/classnames'; @@ -94,7 +95,7 @@ export const DeploymentMenu = ({ deployment.id, ); if (isRollbacked) { - await onUpdate(); + await onUpdate(); toast({ id: 'deployment_rolled_back', title: 'Deployment rolled back',