Skip to content

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
machadoum committed Jun 23, 2021
1 parent a3ce2f0 commit 4364968
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const usePrimaryNavigationItems = ({
items: [
useSideNavItem({ ...props, tab: navTabs.overview }),
// TODO: [1101] Move the following nav items to its group
useSideNavItem({ ...props, tab: navTabs.detections }),
useSideNavItem({ ...props, tab: navTabs.administration }),
],
},
{
Expand Down Expand Up @@ -112,12 +112,7 @@ const useSideNavItem = ({
track(METRIC_TYPE.CLICK, `${TELEMETRY_EVENT.TAB_CLICKED}${id}`);
};

const appHref =
id === 'overview' || id === 'timelines' || id === 'case'
? getUrlForApp(APP_ID, { deepLinkId: id, path: urlSearch })
: getUrlForApp(`${APP_ID}:${id}`, {
path: urlSearch,
});
const appHref = getUrlForApp(APP_ID, { deepLinkId: id, path: urlSearch });

return {
'data-href': appHref,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import React, { useState, useCallback, useMemo } from 'react';
import { useParams, useHistory } from 'react-router-dom';
import { useParams } from 'react-router-dom';
import { EuiTabs, EuiTab, EuiSpacer } from '@elastic/eui';

import { noop } from 'lodash/fp';
Expand Down

0 comments on commit 4364968

Please sign in to comment.