Skip to content

Commit

Permalink
Changed to using AppAction in reducer.
Browse files Browse the repository at this point in the history
  • Loading branch information
efreeti committed Sep 3, 2020
1 parent 102c580 commit 7072df7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

import { ServerApiError } from '../../../../common/types';
import { RoutingAction } from '../../../../common/store/routing/action';
import { AsyncDataBinding } from '../state/async_data_binding';
import { TrustedAppsListData } from '../state/trusted_apps_list_page_state';

Expand All @@ -16,4 +15,4 @@ export interface TrustedAppsListDataBindingChanged {
};
}

export type TrustedAppsPageAction = TrustedAppsListDataBindingChanged | RoutingAction;
export type TrustedAppsPageAction = TrustedAppsListDataBindingChanged;
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ import { matchPath } from 'react-router-dom';
import { ImmutableReducer } from '../../../../common/store';
import { AppLocation, Immutable } from '../../../../../common/endpoint/types';
import { UserChangedUrl } from '../../../../common/store/routing/action';
import { AppAction } from '../../../../common/store/actions';
import { extractListPaginationParams } from '../../../common/routing';
import {
MANAGEMENT_ROUTING_TRUSTED_APPS_PATH,
MANAGEMENT_DEFAULT_PAGE,
MANAGEMENT_DEFAULT_PAGE_SIZE,
} from '../../../common/constants';
import { TrustedAppsListDataBindingChanged, TrustedAppsPageAction } from './action';
import { TrustedAppsListDataBindingChanged } from './action';
import { TrustedAppsListPageState } from '../state/trusted_apps_list_page_state';

type StateReducer = ImmutableReducer<TrustedAppsListPageState, TrustedAppsPageAction>;
type CaseReducer<T extends TrustedAppsPageAction> = (
type StateReducer = ImmutableReducer<TrustedAppsListPageState, AppAction>;
type CaseReducer<T extends AppAction> = (
state: Immutable<TrustedAppsListPageState>,
action: Immutable<T>
) => Immutable<TrustedAppsListPageState>;
Expand Down

0 comments on commit 7072df7

Please sign in to comment.