separate setting actions and reducers
This commit is contained in:
parent
d23c190cad
commit
6083e70ea0
9 changed files with 96 additions and 16 deletions
13
src/background/actions/setting.js
Normal file
13
src/background/actions/setting.js
Normal 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 };
|
Reference in a new issue