MyCrypto/common/actions/rates.js

18 lines
309 B
JavaScript
Raw Normal View History

// @flow
/*** Set rates ***/
export type SetRatesAction = {
type: 'RATES_SET',
payload: { [string]: number }
};
export function setRates(payload: { [string]: number }): SetRatesAction {
return {
type: 'RATES_SET',
payload
};
}
/*** Union Type ***/
export type RatesAction = SetRatesAction;