From 6dae6d1692595f154a6e410b92c900e187a6394b Mon Sep 17 00:00:00 2001 From: Willie Hung Date: Mon, 13 Nov 2023 18:24:35 -0600 Subject: [PATCH] Update src/core/public/chrome/ui/header/nav_link.tsx Co-authored-by: Josh Romero Signed-off-by: Willie Hung --- src/core/public/chrome/ui/header/nav_link.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/public/chrome/ui/header/nav_link.tsx b/src/core/public/chrome/ui/header/nav_link.tsx index dd620d771b18..64d37411d837 100644 --- a/src/core/public/chrome/ui/header/nav_link.tsx +++ b/src/core/public/chrome/ui/header/nav_link.tsx @@ -39,7 +39,7 @@ import { relativeToAbsolute } from '../../nav_links/to_nav_link'; export const isModifiedOrPrevented = (event: React.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);