diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-09-24 23:24:47 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-09-24 23:24:47 +0200 |
commit | fab88bb47e71ad47c928198ddbf7a4d0527e81bb (patch) | |
tree | d218193c775e125e0043d21ee216eed531f01b1b /packages/gitbook-core/src/createReducer.js | |
parent | fa7cf3a65f7a19b2870e6d92c2e110e2356189ae (diff) | |
download | gitbook-fab88bb47e71ad47c928198ddbf7a4d0527e81bb.zip gitbook-fab88bb47e71ad47c928198ddbf7a4d0527e81bb.tar.gz gitbook-fab88bb47e71ad47c928198ddbf7a4d0527e81bb.tar.bz2 |
Add flex box components
Diffstat (limited to 'packages/gitbook-core/src/createReducer.js')
-rw-r--r-- | packages/gitbook-core/src/createReducer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/gitbook-core/src/createReducer.js b/packages/gitbook-core/src/createReducer.js index 4af6373..6860277 100644 --- a/packages/gitbook-core/src/createReducer.js +++ b/packages/gitbook-core/src/createReducer.js @@ -7,7 +7,7 @@ * @return {Function(state, action): state} */ function createReducer(name, reduce) { - return function(state, action) { + return (state, action) => { const value = state[name]; state[name] = reduce(value, action); return state; |