Skip to content

Commit 1a00008

Browse files
netochavesoliviertassinari
authored andcommitted
fix: types
1 parent 8d0326d commit 1a00008

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

docs/src/pages/components/autocomplete/FilterMaxTags.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Autocomplete from '@material-ui/lab/Autocomplete';
44
import { makeStyles } from '@material-ui/core/styles';
55
import 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
/>

docs/src/pages/components/autocomplete/FilterMaxTags.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
/* eslint-disable no-use-before-define */
22
import React from 'react';
33
import 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';
55
import 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

1618
export 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
/>

0 commit comments

Comments
 (0)