From dd6e3dbfc0e0d34d861bcb258fea359dcace996c Mon Sep 17 00:00:00 2001 From: Clumsy-Coder <19594044+Clumsy-Coder@users.noreply.github.com> Date: Wed, 3 Jan 2024 08:41:38 -0700 Subject: [PATCH] feat(components:data-table): display `language` in live submissions data-table ## what - display `language` in live submissions data-table ## how ## why ## where - ./src/app/components/data-table/columns.tsx ## usage --- src/app/components/data-table/columns.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/app/components/data-table/columns.tsx b/src/app/components/data-table/columns.tsx index 6b48616..18e4d75 100644 --- a/src/app/components/data-table/columns.tsx +++ b/src/app/components/data-table/columns.tsx @@ -92,5 +92,21 @@ export const columns: ColumnDef[] = [ ); }, }, + { + accessorKey: "language", + accessorFn: row => row.msg.lan, + header: ({ column }) => { + return ( + + ); + }, + cell: ({ row }) => { + return ( +

+ {row.getValue("language")} +

+ ); + }, + }, ]