Skip to content

Commit

Permalink
[Autocomplete] Fix demo warning
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Nov 24, 2019
1 parent 854ebd8 commit e00f2f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/pages/components/autocomplete/GoogleMaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default function GoogleMaps() {
<Autocomplete
id="google-map-demo"
style={{ width: 300 }}
getOptionLabel={option => option.description}
getOptionLabel={option => (typeof option === 'string' ? option : option.description)}
filterOptions={x => x}
options={options}
autoComplete
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/autocomplete/GoogleMaps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function GoogleMaps() {
<Autocomplete
id="google-map-demo"
style={{ width: 300 }}
getOptionLabel={option => option.description}
getOptionLabel={option => (typeof option === 'string' ? option : option.description)}
filterOptions={x => x}
options={options}
autoComplete
Expand Down
3 changes: 2 additions & 1 deletion docs/src/pages/getting-started/templates/pricing/Pricing.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ const useStyles = makeStyles(theme => ({
padding: theme.spacing(8, 0, 6),
},
cardHeader: {
backgroundColor: theme.palette.type === 'dark' ? theme.palette.grey[700] : theme.palette.grey[200],
backgroundColor:
theme.palette.type === 'dark' ? theme.palette.grey[700] : theme.palette.grey[200],
},
cardPricing: {
display: 'flex',
Expand Down

0 comments on commit e00f2f3

Please sign in to comment.