Rename interfaces, AppBar changes

This commit is contained in:
cracklesparkle
2024-06-28 12:33:07 +09:00
parent c41e59cd86
commit af1d497715
13 changed files with 165 additions and 80 deletions

View File

@ -9,7 +9,8 @@ export default function DataTable(props: Props) {
return (
<DataGrid
style={{ width: "100%", height: "100%" }}
autoHeight
style={{ width: "100%" }}
rows={props.rows}
columns={props.columns}
initialState={{
@ -19,9 +20,16 @@ export default function DataTable(props: Props) {
}}
pageSizeOptions={[10, 20, 50, 100]}
checkboxSelection
disableRowSelectionOnClick
processRowUpdate={(updatedRow, originalRow) => {
console.log(updatedRow)
return updatedRow
}}
onProcessRowUpdateError={(error)=>{
console.log(error)
}}
/>
);
}