Answer the question
In order to leave comments, you need to log in
How to put activity class in header on home?
On all elements, the activity class works, except for home
Header elements are pulled from the admin panel
export default ({ menu, className, common: { t } }: Props.TemplateProps) => {
return (
<>
<ul className={utils.classnames(className, 'top-menu')}>
{menu.map(({ id, title, path }) => (
<Components.Link
key={id}
to={`/${path}`}
className="top-menu__link"
isNav
activeClassName="top-menu__link--current"
>
<span className="top-menu__name">{title}</span>
</Components.Link>
))}
</ul>
</>
);
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question