From 2e36ea0c9f18389d4944fd5e45a690e2df6aa5d5 Mon Sep 17 00:00:00 2001 From: Patryk Kopycinski Date: Wed, 2 Sep 2020 12:26:10 +0200 Subject: [PATCH] imports --- .../components/timeline/body/events/stateful_event.tsx | 10 +++------- .../timeline/body/renderers/get_row_renderer.ts | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/x-pack/plugins/security_solution/public/timelines/components/timeline/body/events/stateful_event.tsx b/x-pack/plugins/security_solution/public/timelines/components/timeline/body/events/stateful_event.tsx index a6095de60a825..9691327f2c988 100644 --- a/x-pack/plugins/security_solution/public/timelines/components/timeline/body/events/stateful_event.tsx +++ b/x-pack/plugins/security_solution/public/timelines/components/timeline/body/events/stateful_event.tsx @@ -12,12 +12,8 @@ import VisibilitySensor from 'react-visibility-sensor'; import { TimelineId } from '../../../../../../common/types/timeline'; import { BrowserFields, DocValueFields } from '../../../../../common/containers/source'; import { useTimelineDetails } from '../../../../containers/details'; -import { - TimelineItem, - TimelineNonEcsData, - DetailItem, -} from '../../../../../../common/search_strategy/timeline'; -import { Ecs } from '../../../../../../common/ecs'; +import { TimelineItem, TimelineNonEcsData } from '../../../../../graphql/types'; +import { DetailItem } from '../../../../../../common/search_strategy/timeline'; import { Note } from '../../../../../common/lib/note'; import { ColumnHeaderOptions, TimelineModel } from '../../../../../timelines/store/timeline/model'; import { AddNoteToEvent, UpdateNote } from '../../../notes/helpers'; @@ -239,7 +235,7 @@ const StatefulEventComponent: React.FC = ({ /> - {getRowRenderer(event.ecs, rowRenderers).renderRow({ + {getRowRenderer(event.ecs, rowRenderers).renderRow({ browserFields, data: event.ecs, timelineId, diff --git a/x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/get_row_renderer.ts b/x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/get_row_renderer.ts index 4f7f9bced5704..778246aeb1815 100644 --- a/x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/get_row_renderer.ts +++ b/x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/get_row_renderer.ts @@ -11,7 +11,7 @@ const unhandledRowRenderer = (): never => { throw new Error('Unhandled Row Renderer'); }; -export const getRowRenderer = (ecs: T, rowRenderers: RowRenderer[]): RowRenderer => { +export const getRowRenderer = (ecs: Ecs, rowRenderers: RowRenderer[]): RowRenderer => { const renderer = rowRenderers.find((rowRenderer) => rowRenderer.isInstance(ecs)); if (renderer == null) { return unhandledRowRenderer();