Add redux-devtools-extension to project

This commit is contained in:
fragosti
2018-05-22 16:08:04 -07:00
parent c70540e7f4
commit dfc635b451
3 changed files with 8 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
"name": "@0xproject/website", "name": "@0xproject/website",
"version": "0.0.32", "version": "0.0.32",
"engines": { "engines": {
"node" : ">=6.12" "node": ">=6.12"
}, },
"private": true, "private": true,
"description": "Website and 0x portal dapp", "description": "Website and 0x portal dapp",
@@ -81,6 +81,7 @@
"json-loader": "^0.5.4", "json-loader": "^0.5.4",
"less-loader": "^2.2.3", "less-loader": "^2.2.3",
"raw-loader": "^0.5.1", "raw-loader": "^0.5.1",
"redux-devtools-extension": "^2.13.2",
"shx": "^0.2.2", "shx": "^0.2.2",
"source-map-loader": "^0.1.6", "source-map-loader": "^0.1.6",
"style-loader": "0.13.x", "style-loader": "0.13.x",

View File

@@ -6,6 +6,7 @@ import { Provider } from 'react-redux';
import { BrowserRouter as Router, Redirect, Route, Switch } from 'react-router-dom'; import { BrowserRouter as Router, Redirect, Route, Switch } from 'react-router-dom';
import * as injectTapEventPlugin from 'react-tap-event-plugin'; import * as injectTapEventPlugin from 'react-tap-event-plugin';
import { createStore, Store as ReduxStore } from 'redux'; import { createStore, Store as ReduxStore } from 'redux';
import { devToolsEnhancer } from 'redux-devtools-extension';
import { Redirecter } from 'ts/components/redirecter'; import { Redirecter } from 'ts/components/redirecter';
import { About } from 'ts/containers/about'; import { About } from 'ts/containers/about';
import { FAQ } from 'ts/containers/faq'; import { FAQ } from 'ts/containers/faq';
@@ -74,7 +75,7 @@ const LazyOrderUtilsDocumentation = createLazyComponent('Documentation', async (
analytics.init(); analytics.init();
// tslint:disable-next-line:no-floating-promises // tslint:disable-next-line:no-floating-promises
analytics.logProviderAsync((window as any).web3); 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( render(
<Router> <Router>
<div> <div>

View File

@@ -9645,6 +9645,10 @@ reduce-function-call@^1.0.1:
dependencies: dependencies:
balanced-match "^0.4.2" 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@*: redux@*:
version "4.0.0" version "4.0.0"
resolved "https://registry.yarnpkg.com/redux/-/redux-4.0.0.tgz#aa698a92b729315d22b34a0553d7e6533555cc03" resolved "https://registry.yarnpkg.com/redux/-/redux-4.0.0.tgz#aa698a92b729315d22b34a0553d7e6533555cc03"