Skip to content

Commit

Permalink
Add prop-types to _app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
HaNdTriX committed Apr 2, 2020
1 parent d49f20d commit 0aa9604
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/nextjs/pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import Head from 'next/head';
import { ThemeProvider } from '@material-ui/core/styles';
import CssBaseline from '@material-ui/core/CssBaseline';
Expand Down Expand Up @@ -27,3 +28,8 @@ export default function MyApp({ Component, pageProps }) {
</React.Fragment>
);
}

MyApp.propTypes = {
Component: PropTypes.func.isRequired,
pageProps: PropTypes.object.isRequired,
};

0 comments on commit 0aa9604

Please sign in to comment.