File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
docs/src/pages/demos/lists Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import PropTypes from 'prop-types' ;
3- import { makeStyles , Theme } from '@material-ui/core/styles' ;
3+ import { createStyles , makeStyles , Theme } from '@material-ui/core/styles' ;
44import ListItem from '@material-ui/core/ListItem' ;
55import ListItemText from '@material-ui/core/ListItemText' ;
66import { 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
1719function Row ( props : ListChildComponentProps ) {
1820 const { index, style } = props ;
You can’t perform that action at this time.
0 commit comments