From c893a641368ca0aad4ad76529c03d9f9c4147e3b Mon Sep 17 00:00:00 2001 From: Chris Hartgerink Date: Fri, 22 Nov 2024 13:43:34 +0100 Subject: [PATCH] Streamline TeamColumns --- src/teams/tables/columns/PmTeamColumns.tsx | 31 ++++------------------ 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/src/teams/tables/columns/PmTeamColumns.tsx b/src/teams/tables/columns/PmTeamColumns.tsx index 639741eb..f8754a49 100644 --- a/src/teams/tables/columns/PmTeamColumns.tsx +++ b/src/teams/tables/columns/PmTeamColumns.tsx @@ -3,35 +3,13 @@ import { createColumnHelper } from "@tanstack/react-table" import Link from "next/link" import { Routes } from "@blitzjs/next" import { TeamData } from "../processing/processTeam" +import { ContributorTeamColumns } from "./ContributorTeamColumns" // Column helper const columnHelper = createColumnHelper() // ColumnDefs -export const PmTeamColumns = [ - columnHelper.accessor("name", { - cell: (info) => {info.getValue()}, - header: "Team Name", - }), - columnHelper.accessor("id", { - id: "view", - header: "View", - enableColumnFilter: false, - enableSorting: false, - cell: (info) => ( -
- - See Contributions - -
- ), - }), +ContributorTeamColumns.push( columnHelper.accessor("id", { id: "edit", header: "Edit", @@ -50,5 +28,6 @@ export const PmTeamColumns = [ ), - }), -] + }) +) +export const PmTeamColumns = ContributorTeamColumns