aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-18 02:08:56 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-18 05:44:40 +0800
commitd46b28873385a8d6521d36f2a529451e1f725b26 (patch)
treeb17610243d7299f3330a4198a75ff00d2a1b49ec /packages
parentdfc5d7d860c2edb93fe45653f755fe8ff530bf1d (diff)
downloaddexon-sol-tools-d46b28873385a8d6521d36f2a529451e1f725b26.tar
dexon-sol-tools-d46b28873385a8d6521d36f2a529451e1f725b26.tar.gz
dexon-sol-tools-d46b28873385a8d6521d36f2a529451e1f725b26.tar.bz2
dexon-sol-tools-d46b28873385a8d6521d36f2a529451e1f725b26.tar.lz
dexon-sol-tools-d46b28873385a8d6521d36f2a529451e1f725b26.tar.xz
dexon-sol-tools-d46b28873385a8d6521d36f2a529451e1f725b26.tar.zst
dexon-sol-tools-d46b28873385a8d6521d36f2a529451e1f725b26.zip
use redux dev tools from package
Diffstat (limited to 'packages')
-rw-r--r--packages/instant/package.json1
-rw-r--r--packages/instant/src/redux/store.ts4
2 files changed, 3 insertions, 2 deletions
diff --git a/packages/instant/package.json b/packages/instant/package.json
index 0c4b470fa..5c4436c52 100644
--- a/packages/instant/package.json
+++ b/packages/instant/package.json
@@ -55,6 +55,7 @@
"react-dom": "^16.5.2",
"react-redux": "^5.0.7",
"redux": "^4.0.0",
+ "redux-devtools-extension": "^2.13.5",
"styled-components": "^3.4.9",
"ts-optchain": "^0.1.1"
},
diff --git a/packages/instant/src/redux/store.ts b/packages/instant/src/redux/store.ts
index 8d9fe34cb..b9ce9c0c1 100644
--- a/packages/instant/src/redux/store.ts
+++ b/packages/instant/src/redux/store.ts
@@ -1,7 +1,7 @@
import * as _ from 'lodash';
import { createStore, Store as ReduxStore } from 'redux';
+import { devToolsEnhancer } from 'redux-devtools-extension/developmentOnly';
import { reducer, State } from './reducer';
-const reduxDevTools = (window as any).__REDUX_DEVTOOLS_EXTENSION__;
-export const store: ReduxStore<State> = createStore(reducer, reduxDevTools && reduxDevTools());
+export const store: ReduxStore<State> = createStore(reducer, devToolsEnhancer({}));