Add missing prop-types.

This commit is contained in:
Jayden Seric 2021-02-10 01:08:24 +11:00
parent dba2c9c2dd
commit be627263e8

View File

@ -13,6 +13,7 @@ import 'device-agnostic-ui/public/components/Textbox.css';
import { ApolloClient, ApolloProvider, InMemoryCache } from '@apollo/client';
import { createUploadLink } from 'apollo-upload-client';
import Head from 'next/head';
import PropTypes from 'prop-types';
const createApolloClient = (cache = {}) =>
new ApolloClient({
@ -70,4 +71,11 @@ App.getInitialProps = async (context) => {
return props;
};
App.propTypes = {
Component: PropTypes.elementType.isRequired,
pageProps: PropTypes.object,
apolloCache: PropTypes.object,
apolloClient: PropTypes.instanceOf(ApolloClient),
};
export default App;