fix imports

This commit is contained in:
casperlamboo 2017-11-17 23:34:20 +01:00
parent f465656da5
commit 88966c6447

View File

@ -22,9 +22,11 @@ document.documentElement.style.height = '100%';
document.documentElement.style.overflow = 'hidden'; document.documentElement.style.overflow = 'hidden';
document.getElementById('app').style.height = '100%'; document.getElementById('app').style.height = '100%';
import actionWrapper from 'redux-action-wrapper';
import * as actions from './src/actions/index.js'; import * as actions from './src/actions/index.js';
import JSONToSketchData from './src/shape/JSONToSketchData.js'; window.actions = actionWrapper(actions, store.dispatch);
import JSONToSketchData from './src/shape/JSONToSketchData.js';
window.addEventListener('drop', async (event) => { window.addEventListener('drop', async (event) => {
console.log(event); console.log(event);
event.preventDefault(); event.preventDefault();
@ -69,8 +71,3 @@ render((
<App /> <App />
</Provider> </Provider>
), document.getElementById('app')); ), document.getElementById('app'));
import actionWrapper from 'redux-action-wrapper';
import * as actions from './src/actions/index.js';
window.actions = actionWrapper(actions, store.dispatch);