Skip to content

Commit

Permalink
Merge pull request #106 from acm-ucr/ting/table-tags
Browse files Browse the repository at this point in the history
Added tags to application table
  • Loading branch information
khandrew1 authored Nov 28, 2024
2 parents 4c9d345 + d935937 commit f5eb96f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/data/admin/applications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import { ColumnDef } from "@tanstack/react-table";
import { Checkbox } from "@/components/ui/checkbox";
import Tag from "@/components/global/tag";

export type Applications = {
id: string;
Expand Down Expand Up @@ -54,6 +55,13 @@ export const columns: ColumnDef<Applications>[] = [
{
accessorKey: "status",
header: "status",
cell: ({ row }) => {
return (
<div className="h-full w-2/3">
<Tag children={row.getValue("status")} />
</div>
);
},
},
];

Expand Down

0 comments on commit f5eb96f

Please sign in to comment.