From 30e83c2a0d7a8e7f7be6af1a0cfb938e68b524c5 Mon Sep 17 00:00:00 2001 From: Paul Schreiber Date: Mon, 8 Jul 2024 15:05:48 -0400 Subject: [PATCH] fix: remove button shadow and add accordion spacing from project transfer screen (#1734) * fix: add spacing between empty accordion sections * fix: remove shadow from disabled button --- .../SiteTransferProjectScreen/SiteTransferProjectScreen.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev-client/src/screens/SiteTransferProjectScreen/SiteTransferProjectScreen.tsx b/dev-client/src/screens/SiteTransferProjectScreen/SiteTransferProjectScreen.tsx index 4ac55751d..08a8becd7 100644 --- a/dev-client/src/screens/SiteTransferProjectScreen/SiteTransferProjectScreen.tsx +++ b/dev-client/src/screens/SiteTransferProjectScreen/SiteTransferProjectScreen.tsx @@ -208,6 +208,9 @@ export const SiteTransferProjectScreen = ({projectId}: Props) => { {projectName} ({projectSites.length}) } + boxProps={{ + mb: projectSites.length === 0 ? '2px' : undefined, + }} initiallyOpen={projectSites.length > 0} disableOpen={projectSites.length === 0}> {projectSites.length > 0 ? ( @@ -238,6 +241,9 @@ export const SiteTransferProjectScreen = ({projectId}: Props) => { label={t('projects.sites.transfer')} onPress={onOpen} isDisabled={disabled} + _disabled={{ + shadow: 0, + }} /> )} title={t('projects.sites.transfer_site_modal.title')}