From 7ebf32d53ab92ee43b2d8d834eb0f7444ba4ecb5 Mon Sep 17 00:00:00 2001 From: Pablo Lara Date: Sat, 30 Nov 2024 17:23:31 +0100 Subject: [PATCH] chore: apply v5 feedback changes (scan twaks) --- .../scans/table/scans/column-get-scans.tsx | 30 ++++++++++++------- .../table/scans/data-table-row-actions.tsx | 9 +++--- 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/ui/components/scans/table/scans/column-get-scans.tsx b/ui/components/scans/table/scans/column-get-scans.tsx index d616e07d93..b79409b102 100644 --- a/ui/components/scans/table/scans/column-get-scans.tsx +++ b/ui/components/scans/table/scans/column-get-scans.tsx @@ -4,7 +4,7 @@ import { ColumnDef } from "@tanstack/react-table"; import { useSearchParams } from "next/navigation"; import { InfoIcon } from "@/components/icons"; -import { DateWithTime, SnippetId } from "@/components/ui/entities"; +import { DateWithTime } from "@/components/ui/entities"; import { TriggerSheet } from "@/components/ui/sheet"; import { DataTableColumnHeader, StatusBadge } from "@/components/ui/table"; import { ScanProps } from "@/types"; @@ -18,6 +18,15 @@ const getScanData = (row: { original: ScanProps }) => { }; export const ColumnGetScans: ColumnDef[] = [ + { + accessorKey: "accountName", + header: () =>

Account name

, + cell: ({ row }) => { + console.log(row.original); + + return providerinfo; + }, + }, { accessorKey: "started_at", header: () =>

Started at

, @@ -123,18 +132,17 @@ export const ColumnGetScans: ColumnDef[] = [ return

{trigger}

; }, }, - - { - accessorKey: "id", - header: () => ID, - cell: ({ row }) => { - return ; - }, - }, + // { + // accessorKey: "id", + // header: () => ID, + // cell: ({ row }) => { + // return ; + // }, + // }, { - accessorKey: "name", + accessorKey: "scanName", header: ({ column }) => ( - + ), cell: ({ row }) => { const { diff --git a/ui/components/scans/table/scans/data-table-row-actions.tsx b/ui/components/scans/table/scans/data-table-row-actions.tsx index 3909fc4533..da35eb2f9b 100644 --- a/ui/components/scans/table/scans/data-table-row-actions.tsx +++ b/ui/components/scans/table/scans/data-table-row-actions.tsx @@ -38,8 +38,7 @@ export function DataTableRowActions({ ({ } onClick={() => setIsEditOpen(true)} > - Edit Scan + Edit scan name