Skip to content

Commit af6a88c

Browse files
committed
Add createStyles
1 parent 8891d65 commit af6a88c

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

docs/src/pages/demos/lists/VirtualizedList.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
3-
import { makeStyles, Theme } from '@material-ui/core/styles';
3+
import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';
44
import ListItem from '@material-ui/core/ListItem';
55
import ListItemText from '@material-ui/core/ListItemText';
66
import { FixedSizeList, ListChildComponentProps } from 'react-window';
77

8-
const useStyles = makeStyles((theme: Theme) => ({
9-
root: {
10-
width: '100%',
11-
height: 400,
12-
maxWidth: 360,
13-
backgroundColor: theme.palette.background.paper,
14-
},
15-
}));
8+
const useStyles = makeStyles((theme: Theme) =>
9+
createStyles({
10+
root: {
11+
width: '100%',
12+
height: 400,
13+
maxWidth: 360,
14+
backgroundColor: theme.palette.background.paper,
15+
},
16+
}),
17+
);
1618

1719
function Row(props: ListChildComponentProps) {
1820
const { index, style } = props;

0 commit comments

Comments
 (0)