Skip to content

Commit

Permalink
Update src/core/public/chrome/ui/header/nav_link.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Romero <[email protected]>
Signed-off-by: Willie Hung <[email protected]>
  • Loading branch information
willie-hung and joshuarrrr authored Nov 14, 2023
1 parent aa623d6 commit 6dae6d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/public/chrome/ui/header/nav_link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { relativeToAbsolute } from '../../nav_links/to_nav_link';
export const isModifiedOrPrevented = (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) =>
event.metaKey || event.altKey || event.ctrlKey || event.shiftKey || event.defaultPrevented;

// Future: should make this function more generic
// TODO: make this function more generic
export const isActiveNavLink = (currentId: string | undefined, targetId: string): boolean => {
if (currentId === 'discover' || currentId === 'data-explorer') {
return ['discover', 'data-explorer'].includes(targetId);
Expand Down

0 comments on commit 6dae6d1

Please sign in to comment.