Refactor actions/subscription.js to use redux action centralized

This commit is contained in:
Chakrit Likitkhajorn 2018-10-14 00:03:09 +07:00
parent c9686c4942
commit 2f02d6f656

View file

@ -3,6 +3,7 @@ import * as ACTIONS from 'constants/action_types';
import * as NOTIFICATION_TYPES from 'constants/notification_types';
import { handleActions } from 'util/redux-utils';
import type { Subscription } from 'types/subscription';
import type { Dispatch as ReduxDispatch } from 'types/redux';
export type NotificationType =
| NOTIFICATION_TYPES.DOWNLOADING
@ -79,7 +80,7 @@ export type Action =
| CheckSubscriptionStarted
| CheckSubscriptionCompleted
| Function;
export type Dispatch = (action: Action) => any;
export type Dispatch = ReduxDispatch<Action>;
const defaultState = {
subscriptions: [],