MyCrypto/common/actions/config.js

19 lines
440 B
JavaScript
Raw Normal View History

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