From c94dc0b62e2658f5ef56e25ff867d6fe4f20753c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Wed, 20 Nov 2024 14:49:43 +0100 Subject: [PATCH] refactor(client): Separate dataset toggle from other icons --- client/src/components/dataset-card/index.tsx | 5 ++++- client/src/components/panels/contextual-layers/item.tsx | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/client/src/components/dataset-card/index.tsx b/client/src/components/dataset-card/index.tsx index 88fcd91..f811411 100644 --- a/client/src/components/dataset-card/index.tsx +++ b/client/src/components/dataset-card/index.tsx @@ -224,7 +224,7 @@ const DatasetCard = ({ id, name, defaultLayerId, layers, metadata }: DatasetCard -
+
{!!selectedLayer?.attributes!.download_link && ( @@ -270,6 +270,9 @@ const DatasetCard = ({ id, name, defaultLayerId, layers, metadata }: DatasetCard )} + {(!!selectedLayer?.attributes!.download_link || !!metadata) && ( +
+ )} { -
+
{!!layer.downloadLink && ( @@ -80,6 +80,9 @@ const Item = ({ name, layers }: ItemProps) => { )} + {(!!layer.downloadLink || !!layer.metadata) && ( +
+ )} id === layer.id) !== -1}