Commit adeecfe8 authored by Jure's avatar Jure

Merge branch 'routes-as-prop' into 'master'

Pass routes element as prop to Root component

See merge request !14
parents 419d8f3d 50108bac
Pipeline #2622 passed with stage
in 4 minutes and 5 seconds
......@@ -7,6 +7,7 @@ import { configureStore, Root } from 'pubsweet-client'
import { AppContainer } from 'react-hot-loader'
import createHistory from 'history/createBrowserHistory'
import routes from './routes'
const history = createHistory()
const store = configureStore(history, {})
......@@ -15,7 +16,7 @@ const rootEl = document.getElementById('root')
ReactDOM.render(
<AppContainer>
<Root store={store} history={history} />
<Root store={store} history={history} routes={routes} />
</AppContainer>,
rootEl
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment