forked from VinokurovVE/tests
DashboardLayout changes, refactoring, useSWR
This commit is contained in:
@ -6,19 +6,22 @@ interface Props {
|
||||
}
|
||||
|
||||
export default function DataTable(props: Props) {
|
||||
|
||||
return (
|
||||
<div style={{ flexGrow: 1, height: "100%", width: '100%' }}>
|
||||
<DataGrid
|
||||
rows={props.rows}
|
||||
columns={props.columns}
|
||||
initialState={{
|
||||
pagination: {
|
||||
paginationModel: { page: 0, pageSize: 10 },
|
||||
},
|
||||
}}
|
||||
pageSizeOptions={[10, 20, 50, 100]}
|
||||
checkboxSelection
|
||||
/>
|
||||
</div>
|
||||
<DataGrid
|
||||
style={{ width: "100%", height: "100%" }}
|
||||
rows={props.rows}
|
||||
columns={props.columns}
|
||||
initialState={{
|
||||
pagination: {
|
||||
paginationModel: { page: 0, pageSize: 10 },
|
||||
},
|
||||
}}
|
||||
pageSizeOptions={[10, 20, 50, 100]}
|
||||
checkboxSelection
|
||||
|
||||
disableRowSelectionOnClick
|
||||
|
||||
/>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user