MyCrypto/common/actions/config.js

19 lines
440 B
JavaScript
Raw Normal View History

2017-04-24 16:59:28 -07:00
// @flow
2017-05-24 17:06:30 -07:00
import { setLanguage } from 'translations';
export const CONFIG_LANGUAGE_CHANGE = 'CONFIG_LANGUAGE_CHANGE';
export const CONFIG_NODE_CHANGE = 'CONFIG_NODE_CHANGE';
2017-05-24 17:06:30 -07:00
export const CHANGE_LANGUAGE = (value: any) => {
setLanguage(value.sign);
return {
type: CONFIG_LANGUAGE_CHANGE,
value
};
};
2017-05-24 17:06:30 -07:00
export const CHANGE_NODE = (value: any) =>
Object({
type: CONFIG_NODE_CHANGE,
value
});