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.

34 lines
907 B

import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
6 years ago
import { ConnectedRouter } from 'connected-react-router';
import { Drizzle } from 'drizzle';
6 years ago
6 years ago
import store, { history } from './redux/store';
import routes from './router/routes';
import { initIPFS } from './utils/orbitUtils';
import * as serviceWorker from './utils/serviceWorker';
import './assets/css/index.css';
6 years ago
import drizzleOptions from './config/drizzleOptions';
6 years ago
import LoadingContainer from './containers/LoadingContainer';
6 years ago
6 years ago
initIPFS();
const drizzle = new Drizzle(drizzleOptions, store);
export { drizzle };
6 years ago
render(
6 years ago
<Provider store={store}>
6 years ago
<LoadingContainer>
<ConnectedRouter history={history}>
{routes}
</ConnectedRouter>
</LoadingContainer>
6 years ago
</Provider>,
document.getElementById('root'),
6 years ago
);
serviceWorker.unregister(); // See also: http://bit.ly/CRA-PWA