+
{team}
+
+
+
+
+ );
+ }
}),
- columnHelper.display({
- id: 'actions',
- header: () => 'Actions',
- cell: ({ row }) => (
-
+ {info.getValue().map((m: ISubmissionMember, idx: number) => (
+
+
+ ({m.full_name})
+
+ ))}
+
)
- })
- ], []);
+ }),
- const handleActionClick = (submissionId: number) => {
- console.log(`Action clicked for submission ID ${submissionId}`);
- // Here goes the logic for handling the action
- };
+ // Links column: render sub-rows with Name, Size, Type, Modified
+ columnHelper.accessor(row => ({ links: row.links, files: row.fileInfo }), {
+ id: 'links',
+ header: () => 'Links',
+ cell: info => {
+ const val = info.getValue() as { links: ISubmissionLink[]; files: any[] };
+ const rows: Array<{ name: any; size: any; type: any; modified: any; url?: string }> = [
+ // map links first
+ ...val.links.map((l: any) => ({ name: l.name || l.displayName, size: l.size || '—', type: l.type || 'link', modified: l.modified || '—', url: l.url })),
+ // then files
+ ...val.files.map((f: any) => ({ name: f.name, size: f.size, type: f.type || 'file', modified: f.modified || '—', url: undefined })),
+ ];
+ return (
+