use vanilla table
All checks were successful
Deploy Frontend / docker (17, 3.8.5) (push) Successful in 1m4s

This commit is contained in:
Braydon 2024-04-21 01:46:34 -04:00
parent 14122b0267
commit 47d2982666

@ -49,22 +49,22 @@ const components: any = {
), ),
// Tables // Tables
table: ({ children }: { children: any }) => ( // table: ({ children }: { children: any }) => (
<Table> // <Table>
<TableHeader> // <TableHeader>
<TableRow> // <TableRow>
{children?.[0].props?.children?.props?.children} // {children?.[0].props?.children?.props?.children}
</TableRow> // </TableRow>
</TableHeader> // </TableHeader>
<TableBody>{children?.[1].props?.children}</TableBody> // <TableBody>{children?.[1].props?.children}</TableBody>
</Table> // </Table>
), // ),
th: ({ children }: { children: ReactNode }) => ( // th: ({ children }: { children: ReactNode }) => (
<TableHead>{children}</TableHead> // <TableHead>{children}</TableHead>
), // ),
td: ({ children }: { children: ReactNode }) => ( // td: ({ children }: { children: ReactNode }) => (
<TableCell>{children}</TableCell> // <TableCell>{children}</TableCell>
), // ),
}; };
/** /**