You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
753 B

import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-intl-redux'
import jstz from 'jstimezonedetect'
import Root from './containers/Root'
import { configureStore, history } from './store/configureStore'
import './styles/app.global.scss'
8 years ago
import { translationMessages, DEFAULT_LOCALE } from './lib/utils/i18n'
const initialState = {
intl: {
locale: DEFAULT_LOCALE,
messages: translationMessages[DEFAULT_LOCALE],
timeZone: jstz.determine().name()
}
}
8 years ago
const store = configureStore(initialState)
const MOUNT_NODE = document.getElementById('root')
8 years ago
const render = () => {
ReactDOM.render(
<Provider store={store}>
<Root history={history} />
</Provider>,
MOUNT_NODE
)
8 years ago
}
render()