From 519618b4568d72ac4906b9e67a9b1ed2cc6726c1 Mon Sep 17 00:00:00 2001 From: Wahyu Kurniawan Date: Fri, 8 Mar 2024 12:42:42 +0700 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20remove=20dupli?= =?UTF-8?q?cate=20component=20and=20use=20absolute=20for=20the=20mobile=20?= =?UTF-8?q?version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deployments/DeploymentDetailsCard.tsx | 31 ++++++------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/packages/frontend/src/components/projects/project/deployments/DeploymentDetailsCard.tsx b/packages/frontend/src/components/projects/project/deployments/DeploymentDetailsCard.tsx index 8caf9ad1..09bfe11c 100644 --- a/packages/frontend/src/components/projects/project/deployments/DeploymentDetailsCard.tsx +++ b/packages/frontend/src/components/projects/project/deployments/DeploymentDetailsCard.tsx @@ -60,22 +60,6 @@ const DeploymentDetailsCard = ({ } }; - const renderDeploymentMenu = useCallback( - (className?: string) => { - return ( - - ); - }, - [deployment, currentDeployment, onUpdate, project, prodBranchDomains], - ); - const renderDeploymentStatus = useCallback( (className?: string) => { return ( @@ -94,9 +78,9 @@ const DeploymentDetailsCard = ({ ); return ( -
+
-
+
{/* DEPLOYMENT URL */} {deployment.url && (
- {/* MENU ON MOBILE */} - {renderDeploymentMenu('flex md:hidden ml-auto')}
{/* DEPLOYMENT STATUS */} @@ -167,7 +149,14 @@ const DeploymentDetailsCard = ({
- {renderDeploymentMenu('ml-auto hidden md:flex')} +
);