Skip to content

Commit 7fbe253

Browse files
authored
Merge pull request #35 from layer5io/chore/upgrade-packages
Chore: upgrade packages
2 parents 5fc07c0 + cc9fbee commit 7fbe253

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+4874
-6287
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

docs/pages/_document.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ class MyDocument extends Document {
7575
}
7676
}
7777

78-
MyDocument.getInitialProps = ctx => {
78+
MyDocument.getInitialProps = (ctx) => {
7979
const pageContext = getPageContext();
80-
const page = ctx.renderPage(Component => props => (
80+
const page = ctx.renderPage((Component) => (props) => (
8181
<JssProvider registry={pageContext.sheetsRegistry} generateClassName={pageContext.generateClassName}>
8282
<Component pageContext={pageContext} {...props} />
8383
</JssProvider>

docs/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Layout from '../utils/layout';
1010
import withRoot from '../utils/withRoot';
1111
import { withStyles } from 'tss-react/mui';
1212

13-
const styles = theme => ({
13+
const styles = (theme) => ({
1414
stepIcon: {
1515
fontSize: '30px',
1616
marginRight: theme.spacing.unit * 2,

docs/utils/CodeSnippet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'prismjs/components/prism-bash';
77
import Paper from '@mui/material/Paper';
88
import { withStyles } from 'tss-react/mui';
99

10-
const styles = theme => ({});
10+
const styles = (theme) => ({});
1111

1212
class CodeSnippet extends React.Component {
1313
static propTypes = {

docs/utils/Menu.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import ListItem from '@mui/material/ListItem';
77
import ListItemText from '@mui/material/ListItemText';
88
import ListSubheader from '@mui/material/ListSubheader';
99

10-
const styles = theme => ({
10+
const styles = (theme) => ({
1111
list: {
1212
width: 250,
1313
},
@@ -26,7 +26,7 @@ const sandboxes = [
2626
{ name: 'Resizable Columns', href: 'https://codesandbox.io/embed/q8w3230qpj?autoresize=1&hidenavigation=1' },
2727
];
2828

29-
const SandboxItem = props => (
29+
const SandboxItem = (props) => (
3030
<ListItem button>
3131
<ListItemText onClick={() => window.open(props.href, '_blank')} primary={props.name} />
3232
</ListItem>
@@ -49,8 +49,9 @@ class Menu extends React.Component {
4949
<ListSubheader className={classes.listTitle} component="h2">
5050
Examples
5151
</ListSubheader>
52-
}>
53-
{sandboxes.map(item => (
52+
}
53+
>
54+
{sandboxes.map((item) => (
5455
<SandboxItem href={item.href} name={item.name} />
5556
))}
5657
</List>

docs/utils/layout.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Menu from './Menu';
1515
/* eslint-disable import/no-webpack-loader-syntax */
1616
import lightTheme from '!raw-loader!prismjs/themes/prism.css';
1717

18-
const styles = theme => ({
18+
const styles = (theme) => ({
1919
appBar: {
2020
backgroundColor: '#23232f',
2121
},
@@ -85,7 +85,8 @@ class Layout extends React.Component {
8585
component="a"
8686
color="inherit"
8787
href="https://github.com/gregnb/mui-datatables"
88-
aria-labelledby="appbar-github">
88+
aria-labelledby="appbar-github"
89+
>
8990
<GitHub />
9091
</IconButton>
9192
</Tooltip>

docs/utils/withRoot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function withRoot(Component) {
3333
pageContext: PropTypes.object,
3434
};
3535

36-
WithRoot.getInitialProps = ctx => {
36+
WithRoot.getInitialProps = (ctx) => {
3737
if (Component.getInitialProps) {
3838
return Component.getInitialProps(ctx);
3939
}

0 commit comments

Comments
 (0)