diff options
Diffstat (limited to 'src/reducers')
-rw-r--r-- | src/reducers/index.js | 3 | ||||
-rw-r--r-- | src/reducers/setting.js | 17 |
2 files changed, 2 insertions, 18 deletions
diff --git a/src/reducers/index.js b/src/reducers/index.js index 3ebe491..9c86ebf 100644 --- a/src/reducers/index.js +++ b/src/reducers/index.js @@ -1,7 +1,8 @@ import inputReducer from 'reducers/input'; -import settingReducer from 'reducers/setting'; +import settingReducer from 'settings/reducers/setting'; import followReducer from 'reducers/follow'; +// Make setting reducer instead of re-use const defaultState = { input: inputReducer(undefined, {}), setting: settingReducer(undefined, {}), diff --git a/src/reducers/setting.js b/src/reducers/setting.js deleted file mode 100644 index 7326ed7..0000000 --- a/src/reducers/setting.js +++ /dev/null @@ -1,17 +0,0 @@ -import actions from 'actions'; - -const defaultState = { - settings: {} -}; - -export default function reducer(state = defaultState, action = {}) { - switch (action.type) { - case actions.SETTING_SET_SETTINGS: - return Object.assign({}, state, { - settings: action.settings, - }); - default: - return state; - } -} - |