diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-07-01 12:20:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-01 12:20:40 +0800 |
commit | d4e400e5e5a7ba501f210b722f6ccf97be9e6c17 (patch) | |
tree | 85b9c12d88db37dd586a50c9ebfdebc5d980da1e /development/mockStore.js | |
parent | 70cf24617bf6adabf5ba012ba1af261df6e79fb3 (diff) | |
parent | 0f16155abfbe3b45677503846aa04cb5c7ef47bf (diff) | |
download | tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.tar tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.tar.gz tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.tar.bz2 tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.tar.lz tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.tar.xz tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.tar.zst tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.zip |
Merge pull request #378 from MetaMask/UiDev
Ui dev
Diffstat (limited to 'development/mockStore.js')
-rw-r--r-- | development/mockStore.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/development/mockStore.js b/development/mockStore.js new file mode 100644 index 000000000..1299ee1dc --- /dev/null +++ b/development/mockStore.js @@ -0,0 +1,18 @@ +const createStore = require('redux').createStore +const applyMiddleware = require('redux').applyMiddleware +const thunkMiddleware = require('redux-thunk') +const createLogger = require('redux-logger') +const rootReducer = require('../ui/app/reducers') + +module.exports = configureStore + +const loggerMiddleware = createLogger() + +const createStoreWithMiddleware = applyMiddleware( + thunkMiddleware, + loggerMiddleware +)(createStore) + +function configureStore (initialState) { + return createStoreWithMiddleware(rootReducer, initialState) +} |