Open jkeruzec opened 5 years ago
It'll be done tonight
Duplicate of: https://github.com/gregnb/mui-datatables/issues/333
I seem to be getting same error, running the latest version of material-ui/core and latest version of mui-datatables
When i expand the error it points towards getMuiTheme()
FYI, Material UI is preparing a version V4 with removal of deprecated behaviour.
This issue has been resolved in beta-53. Please let me know if there are any further problems
Still receiving this issue in 2.0.0-beta-53:
Code in question:
getMuiTheme = () => createMuiTheme({
overrides: {
//@ts-ignore
MUIDataTableBodyCell: {
root: {
padding: "4px"
}
},
MUIDataTableHeadCell: {
root: {
padding: "4px"
}
}
}
})
render() {
return (
<>
<MuiThemeProvider theme={this.getMuiTheme()}>
<MUIDataTable
title={"DataTable Demo"}
data={randomData}
columns={muiDataTableColumns}
options={options}
/>
</MuiThemeProvider>
</>
);
}
@foxmicha Can you provide your environment information? mui ver, etc
material-ui/core: 3.7.1 material-ui/icons: 3.0.2 mui-datatables: 2.0.0-beta-53
Please upgrade material-ui typography variant to latest version.
Thanks :)