Skip to content

Commit

Permalink
uncomment Pinned tab
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Dec 10, 2020
1 parent 4ac5a96 commit 653415a
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ const TabsContentComponent: React.FC<BasicTimelineTab> = ({ 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) {
Expand Down Expand Up @@ -192,15 +192,15 @@ const TabsContentComponent: React.FC<BasicTimelineTab> = ({ timelineId, graphEve
>
{i18n.NOTES_TAB}
</EuiTab>
{/* <EuiTab
<EuiTab
data-test-subj={`timelineTabs-${TimelineTabs.pinned}`}
onClick={setPinnedAsActiveTab}
isSelected={activeTab === TimelineTabs.pinned}
disabled={true}
key={TimelineTabs.pinned}
>
{i18n.PINNED_TAB}
</EuiTab> */}
</EuiTab>
</EuiTabs>
<ActiveTimelineTab activeTimelineTab={activeTab} timelineId={timelineId} />
</>
Expand Down

0 comments on commit 653415a

Please sign in to comment.