aboutsummaryrefslogtreecommitdiff
path: root/src/content/reducers/setting.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-22 17:45:16 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-10-22 20:14:38 +0900
commitc6eb5553d0477f96b5edd48012b4c4ab342f026c (patch)
treec782e23fab00da0dc0106a70a50813fee7acec72 /src/content/reducers/setting.js
parent7639e99b755e372712dca36e077a85d9a025cd9f (diff)
add setting actions in content
Diffstat (limited to 'src/content/reducers/setting.js')
-rw-r--r--src/content/reducers/setting.js13
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;
+ }
+}
+