Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
netochaves committed Mar 22, 2020
1 parent 673211b commit f29cd03
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/components/autocomplete/FilterMaxTags.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export default function FilterMaxTags() {
filterMaxTags={2}
id="tags-standard"
options={top100Films}
getOptionLabel={option => option.title}
getOptionLabel={(option) => option.title}
defaultValue={[top100Films[13], top100Films[12], top100Films[11]]}
renderInput={params => (
renderInput={(params) => (
<TextField {...params} variant="outlined" label="filterMaxTags" placeholder="Favorites" />
)}
/>
Expand Down
22 changes: 12 additions & 10 deletions docs/src/pages/components/autocomplete/FilterMaxTags.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
/* eslint-disable no-use-before-define */
import React from 'react';
import Autocomplete from '@material-ui/lab/Autocomplete';
import { makeStyles, Theme } from '@material-ui/core/styles';
import { makeStyles, createStyles, Theme } from '@material-ui/core/styles';
import TextField from '@material-ui/core/TextField';

const useStyles = makeStyles((theme: Theme) => ({
root: {
width: 500,
'& > * + *': {
marginTop: theme.spacing(3),
const useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
width: 500,
'& > * + *': {
marginTop: theme.spacing(3),
},
},
},
}));
}),
);

export default function FilterMaxTags() {
const classes = useStyles();
Expand All @@ -23,9 +25,9 @@ export default function FilterMaxTags() {
filterMaxTags={2}
id="tags-standard"
options={top100Films}
getOptionLabel={option => option.title}
getOptionLabel={(option) => option.title}
defaultValue={[top100Films[13], top100Films[12], top100Films[11]]}
renderInput={params => (
renderInput={(params) => (
<TextField {...params} variant="outlined" label="filterMaxTags" placeholder="Favorites" />
)}
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui-lab/src/Autocomplete/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ const Autocomplete = React.forwardRef(function Autocomplete(props, ref) {
}
}

const defaultRenderGroup = params => (
const defaultRenderGroup = (params) => (
<li key={params.key}>
<ListSubheader className={classes.groupLabel} component="div">
{params.key}
Expand Down

0 comments on commit f29cd03

Please sign in to comment.