From 653415ae853b8fe1f954eacbe9679add4745b9a4 Mon Sep 17 00:00:00 2001 From: Patryk Kopycinski Date: Thu, 10 Dec 2020 10:45:04 +0100 Subject: [PATCH] uncomment Pinned tab --- .../components/timeline/tabs_content/index.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/x-pack/plugins/security_solution/public/timelines/components/timeline/tabs_content/index.tsx b/x-pack/plugins/security_solution/public/timelines/components/timeline/tabs_content/index.tsx index 019a93b0b8637..3768467dd73cb 100644 --- a/x-pack/plugins/security_solution/public/timelines/components/timeline/tabs_content/index.tsx +++ b/x-pack/plugins/security_solution/public/timelines/components/timeline/tabs_content/index.tsx @@ -147,13 +147,13 @@ const TabsContentComponent: React.FC = ({ timelineId, graphEve [dispatch, timelineId] ); - // const setPinnedAsActiveTab = useCallback( - // () => - // dispatch( - // timelineActions.setActiveTabTimeline({ id: timelineId, activeTab: TimelineTabs.pinned }) - // ), - // [dispatch, timelineId] - // ); + const setPinnedAsActiveTab = useCallback( + () => + dispatch( + timelineActions.setActiveTabTimeline({ id: timelineId, activeTab: TimelineTabs.pinned }) + ), + [dispatch, timelineId] + ); useEffect(() => { if (!graphEventId && activeTab === TimelineTabs.graph) { @@ -192,7 +192,7 @@ const TabsContentComponent: React.FC = ({ timelineId, graphEve > {i18n.NOTES_TAB} - {/* = ({ timelineId, graphEve key={TimelineTabs.pinned} > {i18n.PINNED_TAB} - */} +