aboutsummaryrefslogtreecommitdiff
path: root/src/content/reducers
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-07-08 21:20:49 +0900
committerGitHub <noreply@github.com>2018-07-08 21:20:49 +0900
commit37840c2abb02948d36cdcfaab9063f3ea67fdb6b (patch)
tree2662c396dea1761f57ed508616d2c76389aba5f9 /src/content/reducers
parent9f64b19bef06328999a5ed602ba89867402b9d5c (diff)
parent43beccfe0f323e2363fe97bdb6bc0d71558fda47 (diff)
Merge pull request #429 from ueokande/use-official-redux
Use official redux
Diffstat (limited to 'src/content/reducers')
-rw-r--r--src/content/reducers/addon.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/content/reducers/addon.js b/src/content/reducers/addon.js
index b881ca0..0def55a 100644
--- a/src/content/reducers/addon.js
+++ b/src/content/reducers/addon.js
@@ -6,15 +6,9 @@ const defaultState = {
export default function reducer(state = defaultState, action = {}) {
switch (action.type) {
- case actions.ADDON_ENABLE:
+ case actions.ADDON_SET_ENABLED:
return { ...state,
- enabled: true, };
- case actions.ADDON_DISABLE:
- return { ...state,
- enabled: false, };
- case actions.ADDON_TOGGLE_ENABLED:
- return { ...state,
- enabled: !state.enabled, };
+ enabled: action.enabled, };
default:
return state;
}