21 lines
406 B
JavaScript
21 lines
406 B
JavaScript
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,
|
|
};
|
|
});
|
|
};
|
|
|
|
const setProperty = (name, value) => {
|
|
return {
|
|
type: actions.SETTING_SET_PROPERTY,
|
|
name,
|
|
value,
|
|
};
|
|
};
|
|
|
|
export { load, setProperty };
|