Skip to content

Commit 8558ec2

Browse files
authored
[examples] Fix Next.js prop-type warning (#20474)
1 parent 3359d81 commit 8558ec2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/pages/_app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ export default function MyApp(props) {
338338
}
339339

340340
MyApp.propTypes = {
341-
Component: PropTypes.func.isRequired,
341+
Component: PropTypes.elementType.isRequired,
342342
pageProps: PropTypes.object.isRequired,
343343
};
344344

examples/nextjs/pages/_app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ export default function MyApp(props) {
3232
}
3333

3434
MyApp.propTypes = {
35-
Component: PropTypes.func.isRequired,
35+
Component: PropTypes.elementType.isRequired,
3636
pageProps: PropTypes.object.isRequired,
3737
};

0 commit comments

Comments
 (0)