From 18340e04ffa5864e6f12d8d4a820cc10635f01d3 Mon Sep 17 00:00:00 2001 From: Ashfaq Date: Thu, 17 Feb 2022 15:26:32 +0530 Subject: [PATCH 1/2] readme: Update the readme styling example --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e64245386..7a809ec9b 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Version 3 has been released! You can read about the [updates here](https://githu `npm install mui-datatables --save` -If your project doesn't already use them, you need to install `@material-ui/core` and `@material-ui/icons` as well. +If your project doesn't already use them, you need to install `@mui/material`, `@mui/icons-material` as well. ## Demo @@ -367,10 +367,12 @@ import { createTheme, ThemeProvider } from '@material-ui/core/styles'; class BodyCellExample extends React.Component { getMuiTheme = () => createTheme({ - overrides: { + components: { MUIDataTableBodyCell: { - root: { - backgroundColor: "#FF0000" + styleOverrides:{ + root: { + backgroundColor: "#FF0000" + } } } } From db95ea1ff3e3959a6b9084f73e709e8c65438548 Mon Sep 17 00:00:00 2001 From: Ashfaq Date: Thu, 17 Feb 2022 15:59:13 +0530 Subject: [PATCH 2/2] readme: Updated the compatibility with the required deps --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 7a809ec9b..6c9437d86 100644 --- a/README.md +++ b/README.md @@ -39,21 +39,21 @@ Version 3 has been released! You can read about the [updates here](https://githu If your project doesn't already use them, you need to install `@mui/material`, `@mui/icons-material` as well. +## Compatibility + +| mui-datatables | material-ui | Required Dependencies | +|----------------|-------------|------------------------------------------------------| +| ^2.0.0 | ^3.0.0 | `@material-ui/core`,`@material-ui/icons` | +| ^3.0.0 | ^4.10.0 | `@material-ui/core`,`@material-ui/icons` | +| ^3.8.0 | ^4.12.0 | `@material-ui/core`,`@material-ui/icons` | +| ^4.0.0 | ^5.0.0 | `@mui/material`,`@mui/icons-material`, `@mui/styles` | + ## Demo [![Edit react-to-print](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/muidatatables-custom-toolbar-forked-j002q?file=/index.js) Browse live demos of all examples in this repo in [here](https://codesandbox.io/s/github/gregnb/mui-datatables)! -## compatibility - -| mui-datatables | material | -| ------------- | ------------- | -| ^2.0.0 | ^3.0.0 | -| ^3.0.0 | ^4.10.0 | -| ^3.8.0 | ^4.12.0 | -| ^4.0.0 | ^5.0.0 | - ## Usage For a simple table: