File tree Expand file tree Collapse file tree 2 files changed +15
-13
lines changed
docs/src/pages/components/autocomplete Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import Autocomplete from '@material-ui/lab/Autocomplete';
44import { makeStyles } from '@material-ui/core/styles' ;
55import TextField from '@material-ui/core/TextField' ;
66
7- const useStyles = makeStyles ( theme => ( {
7+ const useStyles = makeStyles ( ( theme ) => ( {
88 root : {
99 width : 500 ,
1010 '& > * + *' : {
@@ -23,9 +23,9 @@ export default function FilterMaxTags() {
2323 filterMaxTags = { 2 }
2424 id = "tags-standard"
2525 options = { top100Films }
26- getOptionLabel = { option => option . title }
26+ getOptionLabel = { ( option ) => option . title }
2727 defaultValue = { [ top100Films [ 13 ] , top100Films [ 12 ] , top100Films [ 11 ] ] }
28- renderInput = { params => (
28+ renderInput = { ( params ) => (
2929 < TextField { ...params } variant = "outlined" label = "filterMaxTags" placeholder = "Favorites" />
3030 ) }
3131 />
Original file line number Diff line number Diff line change 11/* eslint-disable no-use-before-define */
22import React from 'react' ;
33import Autocomplete from '@material-ui/lab/Autocomplete' ;
4- import { makeStyles , Theme } from '@material-ui/core/styles' ;
4+ import { makeStyles , createStyles , Theme } from '@material-ui/core/styles' ;
55import TextField from '@material-ui/core/TextField' ;
66
7- const useStyles = makeStyles ( ( theme : Theme ) => ( {
8- root : {
9- width : 500 ,
10- '& > * + *' : {
11- marginTop : theme . spacing ( 3 ) ,
7+ const useStyles = makeStyles ( ( theme : Theme ) =>
8+ createStyles ( {
9+ root : {
10+ width : 500 ,
11+ '& > * + *' : {
12+ marginTop : theme . spacing ( 3 ) ,
13+ } ,
1214 } ,
13- } ,
14- } ) ) ;
15+ } ) ,
16+ ) ;
1517
1618export default function FilterMaxTags ( ) {
1719 const classes = useStyles ( ) ;
@@ -23,9 +25,9 @@ export default function FilterMaxTags() {
2325 filterMaxTags = { 2 }
2426 id = "tags-standard"
2527 options = { top100Films }
26- getOptionLabel = { option => option . title }
28+ getOptionLabel = { ( option ) => option . title }
2729 defaultValue = { [ top100Films [ 13 ] , top100Films [ 12 ] , top100Films [ 11 ] ] }
28- renderInput = { params => (
30+ renderInput = { ( params ) => (
2931 < TextField { ...params } variant = "outlined" label = "filterMaxTags" placeholder = "Favorites" />
3032 ) }
3133 />
You can’t perform that action at this time.
0 commit comments