From ecccc1bc937962fac4256801c9dacfd032421a69 Mon Sep 17 00:00:00 2001 From: anamontiaga Date: Tue, 29 Aug 2023 17:12:33 +0200 Subject: [PATCH] list styles --- app/hooks/cost-surface/index.ts | 3 +- .../components/inventory-table/index.tsx | 42 ++++++++++--------- .../inventory-table/row-item/index.tsx | 12 +++--- 3 files changed, 31 insertions(+), 26 deletions(-) diff --git a/app/hooks/cost-surface/index.ts b/app/hooks/cost-surface/index.ts index b9f3c59e2f..1d3c852957 100644 --- a/app/hooks/cost-surface/index.ts +++ b/app/hooks/cost-surface/index.ts @@ -37,7 +37,8 @@ export function useProjectCostSurfaces( queryFn: async () => API.request({ method: 'GET', - url: `/projects/${pid}/cost-surfaces`, + // !TODO: change this to the correct endpoint + url: `/projects/${pid}/protected-areas`, headers: { Authorization: `Bearer ${session.accessToken}`, }, diff --git a/app/layout/project/sidebar/project/inventory-panel/components/inventory-table/index.tsx b/app/layout/project/sidebar/project/inventory-panel/components/inventory-table/index.tsx index 906bb73aa3..6c4195bed2 100644 --- a/app/layout/project/sidebar/project/inventory-panel/components/inventory-table/index.tsx +++ b/app/layout/project/sidebar/project/inventory-panel/components/inventory-table/index.tsx @@ -43,25 +43,29 @@ const InventoryTable = ({ onChange={onSelectAll} /> - - - - - - + {columns['name'] && ( + + + + )} + {columns['tag'] && ( + + + + )} diff --git a/app/layout/project/sidebar/project/inventory-panel/components/inventory-table/row-item/index.tsx b/app/layout/project/sidebar/project/inventory-panel/components/inventory-table/row-item/index.tsx index 9facd7eb38..268f339fc4 100644 --- a/app/layout/project/sidebar/project/inventory-panel/components/inventory-table/row-item/index.tsx +++ b/app/layout/project/sidebar/project/inventory-panel/components/inventory-table/row-item/index.tsx @@ -20,7 +20,7 @@ const RowItem = ({ const { id, name, scenarios, tag, isVisibleOnMap } = item; return ( - + - - {tag && ( + {tag && ( +
{tag}
- )} - - + + )} +