From 1edce89ee7c55c21b092aaf7b60eff3215e45e22 Mon Sep 17 00:00:00 2001 From: Jaalah Ramos Date: Wed, 4 Dec 2024 14:57:54 -0500 Subject: [PATCH] Remove double copy icon @dwiley-akamai --- .../AccessKeyTable/HostNameTableCell.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/manager/src/features/ObjectStorage/AccessKeyLanding/AccessKeyTable/HostNameTableCell.tsx b/packages/manager/src/features/ObjectStorage/AccessKeyLanding/AccessKeyTable/HostNameTableCell.tsx index 8dcfc392dd7..59297fa165b 100644 --- a/packages/manager/src/features/ObjectStorage/AccessKeyLanding/AccessKeyTable/HostNameTableCell.tsx +++ b/packages/manager/src/features/ObjectStorage/AccessKeyLanding/AccessKeyTable/HostNameTableCell.tsx @@ -38,14 +38,12 @@ export const HostNameTableCell = (props: Props) => { const firstRegion = regions[0]; const formattedFirstEndpoint = formatEndpoint(firstRegion); const allEndpoints = regions.map(formatEndpoint).join('\n'); + const showMultipleRegions = regions.length > 1; return ( {formattedFirstEndpoint}  - {regions.length === 1 && ( - - )} - {regions.length > 1 && ( + {showMultipleRegions ? ( <> | +{regions.length - 1} regions |  { setHostNames(regions); setShowHostNamesDrawers(true); }} - type="button" > Show All + + ) : ( + )} - ); };