2019-03-25 20:53:33 +01:00
|
|
|
import React from 'react';
|
|
|
|
import ReactDOM from 'react-dom';
|
|
|
|
import App from './App';
|
2019-03-25 22:01:39 +01:00
|
|
|
import { HashRouter } from 'react-router-dom';
|
2019-03-25 20:53:33 +01:00
|
|
|
import * as serviceWorker from './serviceWorker';
|
2019-03-27 22:39:25 +01:00
|
|
|
import {createUserDefaults} from './utilities/settings';
|
2019-03-28 21:46:19 +01:00
|
|
|
import {refreshUserAccountData} from './utilities/accounts';
|
2019-03-30 22:13:49 +01:00
|
|
|
import {SnackbarProvider} from 'notistack';
|
2019-03-27 22:39:25 +01:00
|
|
|
|
|
|
|
createUserDefaults();
|
2019-03-28 21:46:19 +01:00
|
|
|
refreshUserAccountData();
|
2019-03-25 20:53:33 +01:00
|
|
|
|
2019-03-25 22:01:39 +01:00
|
|
|
ReactDOM.render(
|
|
|
|
<HashRouter>
|
2019-03-30 22:13:49 +01:00
|
|
|
<SnackbarProvider
|
|
|
|
anchorOrigin={{
|
|
|
|
vertical: 'bottom',
|
|
|
|
horizontal: 'right',
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<App />
|
|
|
|
</SnackbarProvider>
|
2019-03-25 22:01:39 +01:00
|
|
|
</HashRouter>,
|
|
|
|
document.getElementById('root'));
|
2019-03-25 20:53:33 +01:00
|
|
|
|
2019-03-30 22:13:49 +01:00
|
|
|
|
2019-03-25 20:53:33 +01:00
|
|
|
// If you want your app to work offline and load faster, you can change
|
|
|
|
// unregister() to register() below. Note this comes with some pitfalls.
|
|
|
|
// Learn more about service workers: https://bit.ly/CRA-PWA
|
|
|
|
serviceWorker.unregister();
|