Skip to content

Commit 7072df7

Browse files
committed
Changed to using AppAction in reducer.
1 parent 102c580 commit 7072df7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

x-pack/plugins/security_solution/public/management/pages/trusted_apps/store/action.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66

77
import { ServerApiError } from '../../../../common/types';
8-
import { RoutingAction } from '../../../../common/store/routing/action';
98
import { AsyncDataBinding } from '../state/async_data_binding';
109
import { TrustedAppsListData } from '../state/trusted_apps_list_page_state';
1110

@@ -16,4 +15,4 @@ export interface TrustedAppsListDataBindingChanged {
1615
};
1716
}
1817

19-
export type TrustedAppsPageAction = TrustedAppsListDataBindingChanged | RoutingAction;
18+
export type TrustedAppsPageAction = TrustedAppsListDataBindingChanged;

x-pack/plugins/security_solution/public/management/pages/trusted_apps/store/reducer.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@ import { matchPath } from 'react-router-dom';
1010
import { ImmutableReducer } from '../../../../common/store';
1111
import { AppLocation, Immutable } from '../../../../../common/endpoint/types';
1212
import { UserChangedUrl } from '../../../../common/store/routing/action';
13+
import { AppAction } from '../../../../common/store/actions';
1314
import { extractListPaginationParams } from '../../../common/routing';
1415
import {
1516
MANAGEMENT_ROUTING_TRUSTED_APPS_PATH,
1617
MANAGEMENT_DEFAULT_PAGE,
1718
MANAGEMENT_DEFAULT_PAGE_SIZE,
1819
} from '../../../common/constants';
19-
import { TrustedAppsListDataBindingChanged, TrustedAppsPageAction } from './action';
20+
import { TrustedAppsListDataBindingChanged } from './action';
2021
import { TrustedAppsListPageState } from '../state/trusted_apps_list_page_state';
2122

22-
type StateReducer = ImmutableReducer<TrustedAppsListPageState, TrustedAppsPageAction>;
23-
type CaseReducer<T extends TrustedAppsPageAction> = (
23+
type StateReducer = ImmutableReducer<TrustedAppsListPageState, AppAction>;
24+
type CaseReducer<T extends AppAction> = (
2425
state: Immutable<TrustedAppsListPageState>,
2526
action: Immutable<T>
2627
) => Immutable<TrustedAppsListPageState>;

0 commit comments

Comments
 (0)