diff --git a/src/app/problems/components/data-table/columns.tsx b/src/app/problems/components/data-table/columns.tsx index 7e99ed8..9ad4912 100644 --- a/src/app/problems/components/data-table/columns.tsx +++ b/src/app/problems/components/data-table/columns.tsx @@ -1,6 +1,9 @@ "use client" import { ColumnDef } from "@tanstack/react-table" +import { ArrowUpDown, MoreHorizontal } from "lucide-react" + +import { Button } from "@/components/ui/button" // This type is used to define the shape of our data. // You can use a Zod schema here if you want. @@ -12,11 +15,31 @@ export type Payment = { export const columns: ColumnDef[] = [ { accessorKey: "num", - header: "Problem number", + header: ({ column }) => { + return ( + + ) + }, }, { accessorKey: "title", - header: "Problem title", + header: ({ column }) => { + return ( + + ) + }, }, ]