From 2fe8a4d3b1af930877f65e7077af42f3a701d3d1 Mon Sep 17 00:00:00 2001 From: Radoslaw Szwajkowski Date: Mon, 5 Aug 2024 21:34:49 +0200 Subject: [PATCH] :bug: Use default truncation strategy for the archetype description cell (#2048) Resolves: https://github.com/konveyor/tackle2-ui/issues/1998 Signed-off-by: Radoslaw Szwajkowski --- .../src/app/pages/archetypes/archetypes-page.tsx | 3 +-- .../components/archetype-description-column.tsx | 15 --------------- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 client/src/app/pages/archetypes/components/archetype-description-column.tsx diff --git a/client/src/app/pages/archetypes/archetypes-page.tsx b/client/src/app/pages/archetypes/archetypes-page.tsx index 7b337e3fd3..a6fe66f0d0 100644 --- a/client/src/app/pages/archetypes/archetypes-page.tsx +++ b/client/src/app/pages/archetypes/archetypes-page.tsx @@ -50,7 +50,6 @@ import { } from "@app/queries/archetypes"; import LinkToArchetypeApplications from "./components/link-to-archetype-applications"; -import ArchetypeDescriptionColumn from "./components/archetype-description-column"; import ArchetypeDetailDrawer from "./components/archetype-detail-drawer"; import ArchetypeForm from "./components/archetype-form"; import ArchetypeMaintainersColumn from "./components/archetype-maintainers-column"; @@ -437,7 +436,7 @@ const Archetypes: React.FC = () => { {...getTdProps({ columnKey: "description" })} modifier="truncate" > - + {archetype.description} diff --git a/client/src/app/pages/archetypes/components/archetype-description-column.tsx b/client/src/app/pages/archetypes/components/archetype-description-column.tsx deleted file mode 100644 index 145f5db25a..0000000000 --- a/client/src/app/pages/archetypes/components/archetype-description-column.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import React from "react"; -import { Text, Tooltip } from "@patternfly/react-core"; -import type { Archetype } from "@app/api/models"; - -const ArchetypeDescriptionColumn: React.FC<{ archetype: Archetype }> = ({ - archetype, -}) => { - return ( - - {archetype.description} - - ); -}; - -export default ArchetypeDescriptionColumn;