From b422f1e5b03e5e6f463f38baa0bd7807dba1ab49 Mon Sep 17 00:00:00 2001 From: ishikawa-pro Date: Fri, 5 Apr 2024 19:18:57 +0900 Subject: [PATCH] feat: change link column on cloudbuild plugin Signed-off-by: ishikawa-pro --- .../WorkflowRunsTable/WorkflowRunsTable.tsx | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/plugins/cloudbuild/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx b/plugins/cloudbuild/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx index 5dc9005126..15dc31b730 100644 --- a/plugins/cloudbuild/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx +++ b/plugins/cloudbuild/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx @@ -48,11 +48,18 @@ const generatedColumns: TableColumn[] = [ field: 'id', type: 'numeric', width: '150px', - render: (row: Partial) => ( - - {row.id?.substring(0, 8)} - - ), + render: (row: Partial) => { + const LinkWrapper = () => { + const routeLink = useRouteRef(buildRouteRef); + return ( + + {row.id?.substring(0, 8)} + + ); + }; + + return ; + }, }, { title: 'Trigger Name', @@ -67,18 +74,11 @@ const generatedColumns: TableColumn[] = [ field: 'source', highlight: true, width: '200px', - render: (row: Partial) => { - const LinkWrapper = () => { - const routeLink = useRouteRef(buildRouteRef); - return ( - - {row.message} - - ); - }; - - return ; - }, + render: (row: Partial) => ( + + {row.message} + + ), }, { title: 'Ref',