2021-02-10 21:28:36 +00:00
|
|
|
import React from 'react'
|
2021-02-14 17:54:05 +00:00
|
|
|
import {Settings} from 'luxon'
|
2021-02-10 21:28:36 +00:00
|
|
|
import ReactDOM from 'react-dom'
|
|
|
|
import 'semantic-ui-css/semantic.min.css'
|
|
|
|
import './index.css'
|
|
|
|
import App from './App'
|
|
|
|
|
|
|
|
import {Provider} from 'react-redux'
|
|
|
|
import {compose, createStore} from 'redux'
|
|
|
|
import persistState from 'redux-localstorage'
|
|
|
|
|
|
|
|
import rootReducer from './reducers'
|
|
|
|
|
|
|
|
const enhancer = compose(persistState(['login']))
|
|
|
|
|
|
|
|
const store = createStore(rootReducer, undefined, enhancer)
|
2021-01-19 13:51:36 +00:00
|
|
|
|
2021-02-14 17:54:05 +00:00
|
|
|
// TODO: remove
|
|
|
|
Settings.defaultLocale = 'de-DE'
|
|
|
|
|
2021-01-19 13:51:36 +00:00
|
|
|
ReactDOM.render(
|
2021-02-10 21:28:36 +00:00
|
|
|
<Provider store={store}>
|
2021-01-19 13:51:36 +00:00
|
|
|
<App />
|
2021-02-10 21:28:36 +00:00
|
|
|
</Provider>,
|
2021-01-19 13:51:36 +00:00
|
|
|
document.getElementById('root')
|
2021-02-10 21:28:36 +00:00
|
|
|
)
|