Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
feat(components:data-table): display rank in live submissions data-…
Browse files Browse the repository at this point in the history
…table

  ## what
  - display `rank` in live submissions data-table

  ## how

  ## why

  ## where
  - ./src/app/components/data-table/columns.tsx

  ## usage
  • Loading branch information
Clumsy-Coder committed Jan 16, 2024
1 parent fd3e949 commit 403df62
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/app/components/data-table/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,21 @@ export const columns: ColumnDef<Submission>[] = [
);
},
},
{
accessorKey: "rank",
accessorFn: row => row.msg.rank,
header: ({ column }) => {
return (
<DataTableColumnHeader column={column} title="Rank" />
);
},
cell: ({ row }) => {
return (
<p>
{row.getValue('rank')}
</p>
);
},
},
]

0 comments on commit 403df62

Please sign in to comment.