diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-22 17:45:16 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-22 20:14:38 +0900 |
commit | c6eb5553d0477f96b5edd48012b4c4ab342f026c (patch) | |
tree | c782e23fab00da0dc0106a70a50813fee7acec72 /src/content/reducers/setting.js | |
parent | 7639e99b755e372712dca36e077a85d9a025cd9f (diff) |
add setting actions in content
Diffstat (limited to 'src/content/reducers/setting.js')
-rw-r--r-- | src/content/reducers/setting.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/content/reducers/setting.js b/src/content/reducers/setting.js new file mode 100644 index 0000000..22fac6f --- /dev/null +++ b/src/content/reducers/setting.js @@ -0,0 +1,13 @@ +import actions from 'content/actions'; + +const defaultState = {}; + +export default function reducer(state = defaultState, action = {}) { + switch (action.type) { + case actions.SETTING_SET: + return Object.assign({}, action.value); + default: + return state; + } +} + |