Skip to content

Commit

Permalink
[Observabilty] [Timelines] Export t_grid component props helper (elas…
Browse files Browse the repository at this point in the history
  • Loading branch information
miltonhultgren committed Sep 3, 2021
1 parent 749d159 commit 5b81879
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ import {
getAlertsPermissions,
useGetUserAlertsPermissions,
} from '../../hooks/use_alert_permission';
import type { TimelinesUIStart, TGridType, SortDirection } from '../../../../timelines/public';
import type {
TimelinesUIStart,
GetTGridProps,
TGridType,
SortDirection,
} from '../../../../timelines/public';
import { useStatusBulkActionItems } from '../../../../timelines/public';
import type { TopAlert } from './';
import { useKibana } from '../../../../../../src/plugins/kibana_react/public';
Expand Down Expand Up @@ -401,7 +406,7 @@ export function AlertsTableTGrid(props: AlertsTableTGridProps) {
values: { totalAlerts },
defaultMessage: '{totalAlerts, plural, =1 {alert} other {alerts}}',
}),
};
} as GetTGridProps<typeof type>;
}, [
casePermissions,
addToQuery,
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/timelines/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export type {
export { Direction } from '../common/search_strategy/common';
export { tGridReducer } from './store/t_grid/reducer';
export type { TGridModelForTimeline, TimelineState, TimelinesUIStart } from './types';
export { TGridType, SortDirection } from './types';
export { TGridType, GetTGridProps, SortDirection } from './types';
export {
ARIA_COLINDEX_ATTRIBUTE,
ARIA_ROWINDEX_ATTRIBUTE,
Expand Down

0 comments on commit 5b81879

Please sign in to comment.