use vanilla table
All checks were successful
Deploy Frontend / docker (17, 3.8.5) (push) Successful in 1m4s
All checks were successful
Deploy Frontend / docker (17, 3.8.5) (push) Successful in 1m4s
This commit is contained in:
parent
14122b0267
commit
47d2982666
@ -49,22 +49,22 @@ const components: any = {
|
||||
),
|
||||
|
||||
// Tables
|
||||
table: ({ children }: { children: any }) => (
|
||||
<Table>
|
||||
<TableHeader>
|
||||
<TableRow>
|
||||
{children?.[0].props?.children?.props?.children}
|
||||
</TableRow>
|
||||
</TableHeader>
|
||||
<TableBody>{children?.[1].props?.children}</TableBody>
|
||||
</Table>
|
||||
),
|
||||
th: ({ children }: { children: ReactNode }) => (
|
||||
<TableHead>{children}</TableHead>
|
||||
),
|
||||
td: ({ children }: { children: ReactNode }) => (
|
||||
<TableCell>{children}</TableCell>
|
||||
),
|
||||
// table: ({ children }: { children: any }) => (
|
||||
// <Table>
|
||||
// <TableHeader>
|
||||
// <TableRow>
|
||||
// {children?.[0].props?.children?.props?.children}
|
||||
// </TableRow>
|
||||
// </TableHeader>
|
||||
// <TableBody>{children?.[1].props?.children}</TableBody>
|
||||
// </Table>
|
||||
// ),
|
||||
// th: ({ children }: { children: ReactNode }) => (
|
||||
// <TableHead>{children}</TableHead>
|
||||
// ),
|
||||
// td: ({ children }: { children: ReactNode }) => (
|
||||
// <TableCell>{children}</TableCell>
|
||||
// ),
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user