File tree Expand file tree Collapse file tree 6 files changed +15
-5
lines changed
docs/data/material/components/app-bar Expand file tree Collapse file tree 6 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ function ScrollTop(props) {
4848}
4949
5050ScrollTop . 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.
Original file line number Diff line number Diff 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
2222function ScrollTop ( props : Props ) {
Original file line number Diff line number Diff line change 11import * as React from 'react' ;
2+ import PropTypes from 'prop-types' ;
23import AppBar from '@mui/material/AppBar' ;
34import Toolbar from '@mui/material/Toolbar' ;
45import 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+
2636export default function ElevateAppBar ( props ) {
2737 return (
2838 < React . Fragment >
Original file line number Diff line number Diff 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
1919function ElevationScroll ( props : Props ) {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ function HideOnScroll(props) {
2626}
2727
2828HideOnScroll . 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.
Original file line number Diff line number Diff 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
2020function HideOnScroll ( props : Props ) {
You can’t perform that action at this time.
0 commit comments