Skip to content

Commit

Permalink
[docs] Batch small changes (mui#20312)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored and EsoterikStare committed Mar 30, 2020
1 parent e57c78b commit 6d920da
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/pages/blog/2019-developer-survey-results.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,4 +320,4 @@ We will run a similar survey next year to keep track of our progress.
If you want to continue to influence our roadmap, please upvote 👍 the issues you are the most interested in on GitHub.

<img src="/static/blog/2019-survey/vote.gif" style="display: block; margin: 0 auto;" alt="How to upvote on GitHub" />
<div style="font-style: italic; text-align: center; margin: 8px;">Help us prioritize by upvoting.</div>
<p class="blog-description">Help us prioritize by upvoting.</p>
4 changes: 2 additions & 2 deletions docs/src/modules/components/AppContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const useStyles = makeStyles((theme) => ({
root: {
paddingTop: 80 + 16,
[theme.breakpoints.up('lg')]: {
paddingLeft: theme.spacing(5),
paddingRight: theme.spacing(5),
paddingLeft: theme.spacing(6),
paddingRight: theme.spacing(6),
},
},
}));
Expand Down
6 changes: 3 additions & 3 deletions docs/src/modules/components/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ function getDemoData(codeVariant, demo, githubLocation) {
// TODO: replace with React.useOpaqueReference if it is released
function useUniqueId(prefix) {
// useOpaqueReference
const [id, setDemoId] = React.useState(null);
const [id, setId] = React.useState();
React.useEffect(() => {
setDemoId(Math.random().toString(36).slice(2));
setId(Math.random().toString(36).slice(2));
}, []);

return `${prefix}${id}`;
return id ? `${prefix}${id}` : id;
}

function Demo(props) {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/autocomplete/LimitTags.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function LimitTags() {
<Autocomplete
multiple
limitTags={2}
id="limit-tags"
id="multiple-limit-tags"
options={top100Films}
getOptionLabel={(option) => option.title}
defaultValue={[top100Films[13], top100Films[12], top100Films[11]]}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/autocomplete/LimitTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function LimitTags() {
<Autocomplete
multiple
limitTags={2}
id="limit-tags"
id="multiple-limit-tags"
options={top100Films}
getOptionLabel={(option) => option.title}
defaultValue={[top100Films[13], top100Films[12], top100Films[11]]}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/landing/Steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function HomeSteps() {
const t = useSelector((state) => state.options.t);

return (
<Container disableGutters maxwidth="lg" className={classes.root}>
<Container disableGutters className={classes.root}>
<Grid container>
<Grid item xs={12} md={6} className={clsx(classes.step, classes.leftStep)}>
<div className={classes.stepTitle}>
Expand Down

0 comments on commit 6d920da

Please sign in to comment.