mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-17 14:40:55 +00:00
af84a589c5
* add redux-promise-middleware to package.json and update package-lock.json * intergrate redux-promise-middleware and simplify rates by replacing saga with promise * fix unrelated breaking test * -improve user messaging when network request fails. \n Clean up rates actions and reducers * Address tslint errors
12 lines
331 B
TypeScript
12 lines
331 B
TypeScript
import * as interfaces from './actionTypes';
|
|
import { TypeKeys } from './constants';
|
|
import { fetchRates, CCResponse } from './actionPayloads';
|
|
|
|
export type TFetchCCRates = typeof fetchCCRates;
|
|
export function fetchCCRates(): interfaces.FetchCCRates {
|
|
return {
|
|
type: TypeKeys.RATES_FETCH_CC,
|
|
payload: fetchRates()
|
|
};
|
|
}
|