Fix build errors
This commit is contained in:
parent
f93c4ad317
commit
e720336768
22 changed files with 91 additions and 96 deletions
|
|
@ -9,11 +9,17 @@ interface ListProps {
|
|||
title: string;
|
||||
rows: any;
|
||||
columns: GridColDef<any>[];
|
||||
onRowClick: (id: string) => void;
|
||||
onRowClick?: (id: string) => void;
|
||||
buttons?: React.ReactNode;
|
||||
}
|
||||
|
||||
export const List: FC<ListProps> = ({ title, rows, columns, onRowClick, buttons }) => {
|
||||
export const List: FC<ListProps> = ({
|
||||
title,
|
||||
rows,
|
||||
columns,
|
||||
onRowClick = () => {},
|
||||
buttons,
|
||||
}) => {
|
||||
const { h3 } = typography;
|
||||
|
||||
return (
|
||||
|
|
@ -23,9 +29,7 @@ export const List: FC<ListProps> = ({ title, rows, columns, onRowClick, buttons
|
|||
<Grid item>
|
||||
<Box sx={h3}>{title}</Box>
|
||||
</Grid>
|
||||
<Grid item>
|
||||
{buttons}
|
||||
</Grid>
|
||||
<Grid item>{buttons}</Grid>
|
||||
</Grid>
|
||||
<Grid item>
|
||||
<Box
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue