Skip to content

Commit 4e5b48f

Browse files
[docs] Batch small changes (#20312)
1 parent e9fbcbf commit 4e5b48f

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

docs/pages/blog/2019-developer-survey-results.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,4 +320,4 @@ We will run a similar survey next year to keep track of our progress.
320320
If you want to continue to influence our roadmap, please upvote 👍 the issues you are the most interested in on GitHub.
321321

322322
<img src="/static/blog/2019-survey/vote.gif" style="display: block; margin: 0 auto;" alt="How to upvote on GitHub" />
323-
<div style="font-style: italic; text-align: center; margin: 8px;">Help us prioritize by upvoting.</div>
323+
<p class="blog-description">Help us prioritize by upvoting.</p>

docs/src/modules/components/AppContainer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const useStyles = makeStyles((theme) => ({
88
root: {
99
paddingTop: 80 + 16,
1010
[theme.breakpoints.up('lg')]: {
11-
paddingLeft: theme.spacing(5),
12-
paddingRight: theme.spacing(5),
11+
paddingLeft: theme.spacing(6),
12+
paddingRight: theme.spacing(6),
1313
},
1414
},
1515
}));

docs/src/modules/components/Demo.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@ function getDemoData(codeVariant, demo, githubLocation) {
153153
// TODO: replace with React.useOpaqueReference if it is released
154154
function useUniqueId(prefix) {
155155
// useOpaqueReference
156-
const [id, setDemoId] = React.useState(null);
156+
const [id, setId] = React.useState();
157157
React.useEffect(() => {
158-
setDemoId(Math.random().toString(36).slice(2));
158+
setId(Math.random().toString(36).slice(2));
159159
}, []);
160160

161-
return `${prefix}${id}`;
161+
return id ? `${prefix}${id}` : id;
162162
}
163163

164164
function Demo(props) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function LimitTags() {
2121
<Autocomplete
2222
multiple
2323
limitTags={2}
24-
id="limit-tags"
24+
id="multiple-limit-tags"
2525
options={top100Films}
2626
getOptionLabel={(option) => option.title}
2727
defaultValue={[top100Films[13], top100Films[12], top100Films[11]]}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function LimitTags() {
2323
<Autocomplete
2424
multiple
2525
limitTags={2}
26-
id="limit-tags"
26+
id="multiple-limit-tags"
2727
options={top100Films}
2828
getOptionLabel={(option) => option.title}
2929
defaultValue={[top100Films[13], top100Films[12], top100Films[11]]}

docs/src/pages/landing/Steps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function HomeSteps() {
8787
const t = useSelector((state) => state.options.t);
8888

8989
return (
90-
<Container disableGutters maxwidth="lg" className={classes.root}>
90+
<Container disableGutters className={classes.root}>
9191
<Grid container>
9292
<Grid item xs={12} md={6} className={clsx(classes.step, classes.leftStep)}>
9393
<div className={classes.stepTitle}>

0 commit comments

Comments
 (0)