Last active
March 20, 2020 20:56
-
-
Save kluu1/b275ba10a09b9ddf74c8f9e3d76b66b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import App from 'next/app' | |
| import { ApolloProvider } from '@apollo/react-hooks'; | |
| import { Container} from 'semantic-ui-react' | |
| import withData from '../utils/apollo-client'; | |
| import Layout from '../components/_App/Layout' | |
| class MyApp extends App { | |
| render() { | |
| const { Component, apollo } = this.props | |
| return ( | |
| <ApolloProvider client={apollo}> | |
| <Layout> | |
| <Container> | |
| <Component /> | |
| </Container> | |
| </Layout> | |
| </ApolloProvider> | |
| ) | |
| } | |
| } | |
| export default withData(MyApp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment