O
O
One Two2021-07-15 15:38:25
typescript
One Two, 2021-07-15 15:38:25

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>
    </>
  );
};

There is an activity class
60f02e32d666a620048672.png
When going to home, there is no activity class
60f02e1c0c085746015858.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid Yakovlev, 2021-07-15
@deleo547

In general, nothing is clear, details in the studio.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question