diff --git a/frontend-client/app/notice/_components/NoticeTable.tsx b/frontend-client/app/notice/_components/NoticeTable.tsx index 9c0fcbef91..fedb781f4e 100644 --- a/frontend-client/app/notice/_components/NoticeTable.tsx +++ b/frontend-client/app/notice/_components/NoticeTable.tsx @@ -8,6 +8,7 @@ import { TableHeader, TableRow } from '@/components/ui/table' +import { cn } from '@/lib/utils' import type { ColumnDef } from '@tanstack/react-table' import { flexRender, @@ -44,25 +45,47 @@ export default function NoticeTable({ data, currentPage }: NoticeTableProps) { )} - {row.original.title} + + {row.original.title} + ) } }, { header: () => ( -
- Date -
+

+ Writer +

+ ), + accessorKey: 'createdBy', + cell: ({ row }) => { + return ( +

+ {row.original.createdBy} +

+ ) + } + }, + { + header: () => ( +

+ Date +

), accessorKey: 'createTime', cell: ({ row }) => { return ( -
- +

+ {dayjs(row.original.createTime).format('YYYY-MM-DD')} -

+

) } } @@ -77,13 +100,20 @@ export default function NoticeTable({ data, currentPage }: NoticeTableProps) { const router = useRouter() return ( - +
{table.getHeaderGroups().map((headerGroup) => ( {headerGroup.headers.map((header) => { return ( - + {header.isPlaceholder ? null : flexRender(