diff --git a/packages/libs/react-ui/src/components/NavHeader/NavHeaderNavigation.tsx b/packages/libs/react-ui/src/components/NavHeader/NavHeaderNavigation.tsx index 758de21275..58f7bf30b8 100644 --- a/packages/libs/react-ui/src/components/NavHeader/NavHeaderNavigation.tsx +++ b/packages/libs/react-ui/src/components/NavHeader/NavHeaderNavigation.tsx @@ -1,8 +1,15 @@ import { NavGlow } from './assets/glow'; -import { glowClass, navListClass, navWrapperClass } from './NavHeader.css'; +import { + activeLinkClass, + glowClass, + linkClass, + navListClass, + navWrapperClass, +} from './NavHeader.css'; import { INavHeaderLinkProps } from './NavHeaderLink'; import useGlow from './useGlow'; +import classNames from 'classnames'; import React, { FC, FunctionComponentElement } from 'react'; export type INavItemTarget = '_self' | '_blank'; @@ -15,13 +22,15 @@ export type INavItems = INavItem[]; export interface INavHeaderNavigationProps { children: FunctionComponentElement[]; + activeLink?: number; } export const NavHeaderNavigation: FC = ({ children, + activeLink, }) => { const { glowX, animationDuration, glowRef, navRef, activeNav, setActiveNav } = - useGlow(); + useGlow(activeLink); return (