From b15fa496047e797dd68c543b948cef88abfcacb6 Mon Sep 17 00:00:00 2001 From: JerrySentry Date: Tue, 7 May 2024 12:51:35 -0400 Subject: [PATCH 1/2] components over time display name instead of id --- .../ComponentsTable/ComponentsTable.tsx | 14 ++++++++++++-- .../DeleteComponentModal.tsx | 19 ++++++++++++------- src/services/repo/useRepoComponents.tsx | 2 ++ 3 files changed, 26 insertions(+), 9 deletions(-) diff --git a/src/pages/RepoPage/ComponentsTab/subroute/ComponentsTable/ComponentsTable.tsx b/src/pages/RepoPage/ComponentsTab/subroute/ComponentsTable/ComponentsTable.tsx index 5dc6d10033..4c70ad435a 100644 --- a/src/pages/RepoPage/ComponentsTab/subroute/ComponentsTable/ComponentsTable.tsx +++ b/src/pages/RepoPage/ComponentsTab/subroute/ComponentsTable/ComponentsTable.tsx @@ -124,12 +124,14 @@ function createTableData({ const data = tableData?.map( ({ + componentId, name, percentCovered, percentChange, measurements, lastUploaded, }: { + componentId: string name: string percentCovered: number | null percentChange: number | null @@ -180,7 +182,13 @@ function createTableData({