Add missing prop-types.
This commit is contained in:
parent
dba2c9c2dd
commit
be627263e8
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user