From a0da4271a191761e0abbf66e506350433cb221a0 Mon Sep 17 00:00:00 2001 From: Tristan Timblin Date: Mon, 23 Oct 2023 12:55:13 -0700 Subject: [PATCH] CEC-3348: truncate table cell (#467) * CEC-3348: truncate ecu list * calc string once * remove unused dep --- .../List/__snapshots__/index.test.jsx.snap | 23 +++++++++++++++---- src/components/Suppliers/Table/index.jsx | 12 ++++++++-- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/src/components/Suppliers/List/__snapshots__/index.test.jsx.snap b/src/components/Suppliers/List/__snapshots__/index.test.jsx.snap index 054ef55..7691935 100644 --- a/src/components/Suppliers/List/__snapshots__/index.test.jsx.snap +++ b/src/components/Suppliers/List/__snapshots__/index.test.jsx.snap @@ -275,7 +275,12 @@ exports[`Suppliers page Render 1`] = ` - ADAS + + ADAS + - ICC, BCM + + ICC, BCM + - BCM + + BCM +
{ /> {suppliers.map((row, index) => { + const ecuList = row.ecus.join(", "); return ( @@ -138,7 +140,13 @@ const SupplierTable = (props) => { {row.email} {row.program} - {row.ecus.join(", ")} + + + + {ecuList} + + + {LocalDateTimeString(row.created)} @@ -159,7 +167,7 @@ const SupplierTable = (props) => {