2018-03-29 09:05:42 +00:00
|
|
|
// @flow
|
2018-03-12 08:30:03 +00:00
|
|
|
import 'babel-polyfill'
|
2018-03-29 09:52:58 +00:00
|
|
|
|
2019-03-21 15:12:49 +00:00
|
|
|
import React from 'react'
|
2018-03-01 08:05:56 +00:00
|
|
|
import ReactDOM from 'react-dom'
|
2019-03-21 15:12:49 +00:00
|
|
|
import Root from '~/components/Root'
|
2019-04-04 13:35:32 +00:00
|
|
|
import { store } from '~/store'
|
|
|
|
import loadSafesFromStorage from '~/routes/safe/store/actions/loadSafesFromStorage'
|
2019-04-17 12:47:21 +00:00
|
|
|
import loadActiveTokens from '~/logic/tokens/store/actions/loadActiveTokens'
|
2019-04-04 13:35:32 +00:00
|
|
|
|
2019-05-23 12:27:02 +00:00
|
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
|
|
// eslint-disable-next-line
|
|
|
|
const whyDidYouRender = require('@welldone-software/why-did-you-render')
|
|
|
|
whyDidYouRender(React)
|
|
|
|
}
|
|
|
|
|
2019-04-17 12:47:21 +00:00
|
|
|
store.dispatch(loadActiveTokens())
|
2019-04-04 13:35:32 +00:00
|
|
|
store.dispatch(loadSafesFromStorage())
|
2018-03-01 08:05:56 +00:00
|
|
|
|
2019-03-05 13:46:49 +00:00
|
|
|
ReactDOM.render(<Root />, document.getElementById('root'))
|