Skip to content

Commit 22598b2

Browse files
committed
Fix docs components types merge mismatch
1 parent ab0df4b commit 22598b2

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

docs/data/material/components/app-bar/BackToTop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function ScrollTop(props) {
4848
}
4949

5050
ScrollTop.propTypes = {
51-
children: PropTypes.element,
51+
children: PropTypes.element.isRequired,
5252
/**
5353
* Injected by the documentation to work in an iframe.
5454
* You won't need it on your project.

docs/data/material/components/app-bar/BackToTop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface Props {
1616
* You won't need it on your project.
1717
*/
1818
window?: () => Window;
19-
children?: React.ReactElement<any>;
19+
children: React.ReactElement<any>;
2020
}
2121

2222
function ScrollTop(props: Props) {

docs/data/material/components/app-bar/ElevateAppBar.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as React from 'react';
2+
import PropTypes from 'prop-types';
23
import AppBar from '@mui/material/AppBar';
34
import Toolbar from '@mui/material/Toolbar';
45
import Typography from '@mui/material/Typography';
@@ -23,6 +24,15 @@ function ElevationScroll(props) {
2324
});
2425
}
2526

27+
ElevationScroll.propTypes = {
28+
children: PropTypes.element.isRequired,
29+
/**
30+
* Injected by the documentation to work in an iframe.
31+
* You won't need it on your project.
32+
*/
33+
window: PropTypes.func,
34+
};
35+
2636
export default function ElevateAppBar(props) {
2737
return (
2838
<React.Fragment>

docs/data/material/components/app-bar/ElevateAppBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface Props {
1313
* You won't need it on your project.
1414
*/
1515
window?: () => Window;
16-
children?: React.ReactElement<any>;
16+
children: React.ReactElement<any>;
1717
}
1818

1919
function ElevationScroll(props: Props) {

docs/data/material/components/app-bar/HideAppBar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function HideOnScroll(props) {
2626
}
2727

2828
HideOnScroll.propTypes = {
29-
children: PropTypes.element,
29+
children: PropTypes.element.isRequired,
3030
/**
3131
* Injected by the documentation to work in an iframe.
3232
* You won't need it on your project.

docs/data/material/components/app-bar/HideAppBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface Props {
1414
* You won't need it on your project.
1515
*/
1616
window?: () => Window;
17-
children?: React.ReactElement<any>;
17+
children: React.ReactElement<any>;
1818
}
1919

2020
function HideOnScroll(props: Props) {

0 commit comments

Comments
 (0)