renamed service

pull/287/head
Vladimir Volek 6 years ago committed by Szymon Lesisz
parent d806871243
commit c668c5094d

@ -31,7 +31,7 @@ import type { TokenAction } from 'actions/TokenActions';
import type { TrezorConnectAction } from 'actions/TrezorConnectActions'; import type { TrezorConnectAction } from 'actions/TrezorConnectActions';
import type { WalletAction } from 'actions/WalletActions'; import type { WalletAction } from 'actions/WalletActions';
import type { Web3Action } from 'actions/Web3Actions'; import type { Web3Action } from 'actions/Web3Actions';
import type { FiatRateAction } from 'services/TickerService'; // this service has no action file, all is written inside one file import type { FiatRateAction } from 'services/CoingeckoService'; // this service has no action file, all is written inside one file
import type { import type {
Device, Device,

@ -1,9 +1,9 @@
/* @flow */ /* @flow */
import { RATE_UPDATE } from 'services/TickerService'; import { RATE_UPDATE } from 'services/CoingeckoService';
import type { Action } from 'flowtype'; import type { Action } from 'flowtype';
import type { FiatRateAction } from 'services/TickerService'; import type { FiatRateAction } from 'services/CoingeckoService';
export type Fiat = { export type Fiat = {
+network: string; +network: string;

@ -47,7 +47,7 @@ const loadRateAction = (): AsyncAction => async (dispatch: Dispatch, getState: G
/** /**
* Middleware * Middleware
*/ */
const TickerService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispatch) => (action: Action): Action => { const CoingeckoService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispatch) => (action: Action): Action => {
next(action); next(action);
if (action.type === READY) { if (action.type === READY) {
@ -57,4 +57,4 @@ const TickerService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispa
return action; return action;
}; };
export default TickerService; export default CoingeckoService;

@ -2,7 +2,7 @@ import WalletService from './WalletService';
import LogService from './LogService'; import LogService from './LogService';
import RouterService from './RouterService'; import RouterService from './RouterService';
import LocalStorageService from './LocalStorageService'; import LocalStorageService from './LocalStorageService';
import TickerService from './TickerService'; import CoingeckoService from './CoingeckoService';
import TrezorConnectService from './TrezorConnectService'; import TrezorConnectService from './TrezorConnectService';
export default [ export default [
@ -11,5 +11,5 @@ export default [
RouterService, RouterService,
LocalStorageService, LocalStorageService,
TrezorConnectService, TrezorConnectService,
TickerService, CoingeckoService,
]; ];
Loading…
Cancel
Save