import React from 'react';
import { render } from 'react-dom';
import { Router, Route, browserHistory } from 'react-router';

import './static/bootstrap/css/bootstrap.css';

import App from './Main/App';

import registerServiceWorker from './registerServiceWorker';

render(
  <Router history={browserHistory}>
    <Route path="/" component={App}>
      <Route path="report/:reportCode" />
      <Route path="report/:reportCode/:fightId" />
      <Route path="report/:reportCode/:fightId/:playerName" />
      <Route path="report/:reportCode/:fightId/:playerName/:resultTab" />
    </Route>
  </Router>,
  document.getElementById('root')
);
registerServiceWorker();

import React from 'react';
import { render } from 'react-dom';
import { Router, Route, browserHistory } from 'react-router';

import './static/bootstrap/css/bootstrap.css';

import App from './Main/App';

render(
  <Router history={browserHistory}>
    <Route path="/" component={App}>
      <Route path="report/:reportCode" />
      <Route path="report/:reportCode/:fightId" />
      <Route path="report/:reportCode/:fightId/:playerName" />
      <Route path="report/:reportCode/:fightId/:playerName/:resultTab" />
    </Route>
  </Router>,
  document.getElementById('root')
);

Disable service worker since it sometimes fails to load the app and with our frequent updates and because we require an API connection anyway it's not worth it. Fixes #397