import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'mobx-react'; import Router from 'react-router/lib/Router'; import Route from 'react-router/lib/Route'; import IndexRoute from 'react-router/lib/IndexRoute'; import History from 'utils/History'; import stores from 'stores'; window.stores = stores; import 'normalize.css/normalize.css'; import 'styles/base.scss'; import 'styles/fonts.css'; import 'styles/hljs-github-gist.scss'; import 'styles/codemirror.scss'; import Application from 'scenes/Application'; import Home from 'scenes/Home'; import Dashboard from 'scenes/Dashboard'; import Atlas from 'scenes/Atlas'; import DocumentScene from 'scenes/DocumentScene'; import DocumentEdit from 'scenes/DocumentEdit'; import SlackAuth from 'scenes/SlackAuth'; let DevTools; if (__DEV__) { DevTools = require('mobx-react-devtools').default; } function requireAuth(nextState, replace) { if (!stores.user.authenticated) { replace({ pathname: '/', state: { nextPathname: nextState.location.pathname }, }); } } render((
{ __DEV__ ? : null }
), document.getElementById('root'));