2018-05-07 15:03:54 +02:00
|
|
|
import App, {Container} from 'next/app'
|
|
|
|
import React from 'react'
|
|
|
|
import withReduxStore from '../lib/with-redux-store'
|
|
|
|
import { Provider } from 'react-redux'
|
|
|
|
|
|
|
|
class MyApp extends App {
|
|
|
|
render () {
|
|
|
|
const {Component, pageProps, reduxStore} = this.props
|
2018-05-15 09:49:07 +02:00
|
|
|
return (
|
|
|
|
<Container>
|
|
|
|
<Provider store={reduxStore}>
|
|
|
|
<Component {...pageProps} />
|
|
|
|
</Provider>
|
|
|
|
</Container>
|
|
|
|
)
|
2018-05-07 15:03:54 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default withReduxStore(MyApp)
|