forked from VinokurovVE/tests
Auth: SignIn, SignUp (TODO: rewrite into react-hook-form)
This commit is contained in:
24
frontend_reactjs/src/components/DataTable.tsx
Normal file
24
frontend_reactjs/src/components/DataTable.tsx
Normal file
@ -0,0 +1,24 @@
|
||||
import { DataGrid } from '@mui/x-data-grid';
|
||||
|
||||
interface Props {
|
||||
rows: any,
|
||||
columns: any
|
||||
}
|
||||
|
||||
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: 5 },
|
||||
},
|
||||
}}
|
||||
pageSizeOptions={[10, 20, 50, 100]}
|
||||
checkboxSelection
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user