From 88966c644753224a043bb91fbf6ea88d391143e8 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Fri, 17 Nov 2017 23:34:20 +0100 Subject: [PATCH] fix imports --- index.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index d700b0d..d7bd14e 100644 --- a/index.js +++ b/index.js @@ -22,9 +22,11 @@ document.documentElement.style.height = '100%'; document.documentElement.style.overflow = 'hidden'; document.getElementById('app').style.height = '100%'; +import actionWrapper from 'redux-action-wrapper'; 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) => { console.log(event); event.preventDefault(); @@ -69,8 +71,3 @@ render(( ), document.getElementById('app')); - -import actionWrapper from 'redux-action-wrapper'; -import * as actions from './src/actions/index.js'; -window.actions = actionWrapper(actions, store.dispatch); -