separate setting actions and reducers

This commit is contained in:
Shin'ya Ueoka 2018-01-08 21:54:16 +09:00
parent d23c190cad
commit 6083e70ea0
9 changed files with 96 additions and 16 deletions

View file

@ -0,0 +1,13 @@
import actions from '../actions';
import * as settingsStorage from 'shared/settings/storage';
const load = () => {
return settingsStorage.loadValue().then((value) => {
return {
type: actions.SETTING_SET_SETTINGS,
value,
};
});
};
export { load };