aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Agosti <francesco.agosti93@gmail.com>2018-05-25 01:12:57 +0800
committerGitHub <noreply@github.com>2018-05-25 01:12:57 +0800
commitde1ff52de3c9953dfb60283c8025b73d6e417029 (patch)
treeb29c2af40a026cfd48e84c59c00014a3543de4fe
parent62431fee8e0c79a61f7ebb7677e6c88f0ae95116 (diff)
parent49ee56b22c7f8da43dd3050270e01bedb864ef5d (diff)
downloaddexon-sol-tools-de1ff52de3c9953dfb60283c8025b73d6e417029.tar
dexon-sol-tools-de1ff52de3c9953dfb60283c8025b73d6e417029.tar.gz
dexon-sol-tools-de1ff52de3c9953dfb60283c8025b73d6e417029.tar.bz2
dexon-sol-tools-de1ff52de3c9953dfb60283c8025b73d6e417029.tar.lz
dexon-sol-tools-de1ff52de3c9953dfb60283c8025b73d6e417029.tar.xz
dexon-sol-tools-de1ff52de3c9953dfb60283c8025b73d6e417029.tar.zst
dexon-sol-tools-de1ff52de3c9953dfb60283c8025b73d6e417029.zip
Merge pull request #612 from 0xProject/feature/website/add-redux-devtools
Add redux-devtools-extension to project
-rw-r--r--packages/website/package.json1
-rw-r--r--packages/website/ts/index.tsx3
-rw-r--r--yarn.lock4
3 files changed, 7 insertions, 1 deletions
diff --git a/packages/website/package.json b/packages/website/package.json
index a91437646..cd0bfaf5e 100644
--- a/packages/website/package.json
+++ b/packages/website/package.json
@@ -48,6 +48,7 @@
"react-tap-event-plugin": "^2.0.1",
"react-tooltip": "^3.2.7",
"redux": "^3.6.0",
+ "redux-devtools-extension": "^2.13.2",
"semver-sort": "0.0.4",
"thenby": "^1.2.3",
"truffle-contract": "2.0.1",
diff --git a/packages/website/ts/index.tsx b/packages/website/ts/index.tsx
index 7fc180449..4fe81a91e 100644
--- a/packages/website/ts/index.tsx
+++ b/packages/website/ts/index.tsx
@@ -6,6 +6,7 @@ import { Provider } from 'react-redux';
import { BrowserRouter as Router, Redirect, Route, Switch } from 'react-router-dom';
import * as injectTapEventPlugin from 'react-tap-event-plugin';
import { createStore, Store as ReduxStore } from 'redux';
+import { devToolsEnhancer } from 'redux-devtools-extension/developmentOnly';
import { Redirecter } from 'ts/components/redirecter';
import { About } from 'ts/containers/about';
import { FAQ } from 'ts/containers/faq';
@@ -74,7 +75,7 @@ const LazyOrderUtilsDocumentation = createLazyComponent('Documentation', async (
analytics.init();
// tslint:disable-next-line:no-floating-promises
analytics.logProviderAsync((window as any).web3);
-const store: ReduxStore<State> = createStore(reducer);
+const store: ReduxStore<State> = createStore(reducer, devToolsEnhancer({ name: '0x Website Redux Store' }));
render(
<Router>
<div>
diff --git a/yarn.lock b/yarn.lock
index 93bfc206f..b6ac4d18b 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -9670,6 +9670,10 @@ reduce-function-call@^1.0.1:
dependencies:
balanced-match "^0.4.2"
+redux-devtools-extension@^2.13.2:
+ version "2.13.2"
+ resolved "https://registry.yarnpkg.com/redux-devtools-extension/-/redux-devtools-extension-2.13.2.tgz#e0f9a8e8dfca7c17be92c7124958a3b94eb2911d"
+
redux@*:
version "4.0.0"
resolved "https://registry.yarnpkg.com/redux/-/redux-4.0.0.tgz#aa698a92b729315d22b34a0553d7e6533555cc03"