obs-portal/frontend/src/index.js

27 lines
612 B
JavaScript
Raw Normal View History

import React from 'react'
2021-02-14 17:54:05 +00:00
import {Settings} from 'luxon'
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-02-14 17:54:05 +00:00
// TODO: remove
Settings.defaultLocale = 'de-DE'
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
)