aboutsummaryrefslogtreecommitdiff
path: root/src/content/reducers/addon.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-05-10 22:27:20 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-05-10 23:00:59 +0900
commite76ca380f733b515c31297a285d8bea44e074a1b (patch)
treeb476d9ca41a8bbbcbbad3b3ee13882da9d640d25 /src/content/reducers/addon.ts
parent05ef6a8ca35aaa801c11eb6b4896caa3690058af (diff)
Make addon-enabled as a clean architecture
Diffstat (limited to 'src/content/reducers/addon.ts')
-rw-r--r--src/content/reducers/addon.ts22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/content/reducers/addon.ts b/src/content/reducers/addon.ts
deleted file mode 100644
index 2131228..0000000
--- a/src/content/reducers/addon.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import * as actions from '../actions';
-
-export interface State {
- enabled: boolean;
-}
-
-const defaultState: State = {
- enabled: true,
-};
-
-export default function reducer(
- state: State = defaultState,
- action: actions.AddonAction,
-): State {
- switch (action.type) {
- case actions.ADDON_SET_ENABLED:
- return { ...state,
- enabled: action.enabled, };
- default:
- return state;
- }
-}