Maor UI polish for editing with live preview

This commit is contained in:
Mathias Biilmann Christensen
2016-09-12 11:14:21 +02:00
parent fcd0ce718a
commit 8221c9c170
17 changed files with 242 additions and 109 deletions

View File

@ -6,7 +6,6 @@ import registry from './lib/registry';
import configureStore from './store/configureStore';
import routes from './routing/routes';
import history, { syncHistory } from './routing/history';
import { initPluginAPI } from './plugins';
import 'file?name=index.html!../example/index.html';
import './index.css';
@ -15,19 +14,15 @@ const store = configureStore();
// Create an enhanced history that syncs navigation events with the store
syncHistory(store);
const Plugin = initPluginAPI();
const el = document.createElement('div');
el.id = 'root';
document.body.appendChild(el);
render((
<Provider store={store}>
<Plugin>
<Router history={history}>
{routes}
</Router>
</Plugin>
<Router history={history}>
{routes}
</Router>
</Provider>
), el);