Skip to content

Commit

Permalink
Remove unnecessary createStyles
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jul 30, 2020
1 parent 4749555 commit 8c636fa
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 30 deletions.
18 changes: 8 additions & 10 deletions docs/src/pages/components/tree-view/FileSystemNavigator.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
import React from 'react';
import { createStyles, makeStyles } from '@material-ui/core/styles';
import { makeStyles } from '@material-ui/core/styles';
import TreeView from '@material-ui/lab/TreeView';
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import ChevronRightIcon from '@material-ui/icons/ChevronRight';
import TreeItem from '@material-ui/lab/TreeItem';

const useStyles = makeStyles(
createStyles({
root: {
height: 240,
flexGrow: 1,
maxWidth: 400,
},
}),
);
const useStyles = makeStyles({
root: {
height: 240,
flexGrow: 1,
maxWidth: 400,
},
});

export default function FileSystemNavigator() {
const classes = useStyles();
Expand Down
18 changes: 8 additions & 10 deletions docs/src/pages/components/tree-view/MultiSelectTreeView.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
import React from 'react';
import { createStyles, makeStyles } from '@material-ui/core/styles';
import { makeStyles } from '@material-ui/core/styles';
import TreeView from '@material-ui/lab/TreeView';
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import ChevronRightIcon from '@material-ui/icons/ChevronRight';
import TreeItem from '@material-ui/lab/TreeItem';

const useStyles = makeStyles(
createStyles({
root: {
height: 216,
flexGrow: 1,
maxWidth: 400,
},
}),
);
const useStyles = makeStyles({
root: {
height: 216,
flexGrow: 1,
maxWidth: 400,
},
});

export default function MultiSelectTreeView() {
const classes = useStyles();
Expand Down
18 changes: 8 additions & 10 deletions docs/src/pages/components/tree-view/RichObjectTreeView.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { createStyles, makeStyles } from '@material-ui/core/styles';
import { makeStyles } from '@material-ui/core/styles';
import TreeView from '@material-ui/lab/TreeView';
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import ChevronRightIcon from '@material-ui/icons/ChevronRight';
Expand Down Expand Up @@ -32,15 +32,13 @@ const data: RenderTree = {
],
};

const useStyles = makeStyles(
createStyles({
root: {
height: 110,
flexGrow: 1,
maxWidth: 400,
},
}),
);
const useStyles = makeStyles({
root: {
height: 110,
flexGrow: 1,
maxWidth: 400,
},
});

export default function RichObjectTreeView() {
const classes = useStyles();
Expand Down

0 comments on commit 8c636fa

Please sign in to comment.