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 { ApolloClient, ApolloProvider, InMemoryCache } from '@apollo/client';
|
||||||
import { createUploadLink } from 'apollo-upload-client';
|
import { createUploadLink } from 'apollo-upload-client';
|
||||||
import Head from 'next/head';
|
import Head from 'next/head';
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
const createApolloClient = (cache = {}) =>
|
const createApolloClient = (cache = {}) =>
|
||||||
new ApolloClient({
|
new ApolloClient({
|
||||||
@ -70,4 +71,11 @@ App.getInitialProps = async (context) => {
|
|||||||
return props;
|
return props;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
App.propTypes = {
|
||||||
|
Component: PropTypes.elementType.isRequired,
|
||||||
|
pageProps: PropTypes.object,
|
||||||
|
apolloCache: PropTypes.object,
|
||||||
|
apolloClient: PropTypes.instanceOf(ApolloClient),
|
||||||
|
};
|
||||||
|
|
||||||
export default App;
|
export default App;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user