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.
|
|
|
import React from 'react';
|
|
|
|
import { render } from 'react-dom';
|
|
|
|
import { Provider } from 'react-redux';
|
|
|
|
import { ConnectedRouter } from 'connected-react-router'
|
|
|
|
import { Drizzle } from 'drizzle';
|
|
|
|
|
|
|
|
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';
|
|
|
|
import drizzleOptions from "./config/drizzleOptions";
|
|
|
|
|
|
|
|
initIPFS();
|
|
|
|
|
|
|
|
const drizzle = new Drizzle(drizzleOptions, store);
|
|
|
|
|
|
|
|
export { drizzle };
|
|
|
|
|
|
|
|
render(
|
|
|
|
<Provider store={store}>
|
|
|
|
<ConnectedRouter history={history}>
|
|
|
|
{ routes }
|
|
|
|
</ConnectedRouter>
|
|
|
|
</Provider>,
|
|
|
|
document.getElementById('root')
|
|
|
|
);
|
|
|
|
|
|
|
|
serviceWorker.unregister(); // See also: http://bit.ly/CRA-PWA
|