partner active nav

This commit is contained in:
Mikola
2024-02-14 16:23:50 +03:00
parent 47fccf9a9f
commit d2b53392fa
5 changed files with 15 additions and 13 deletions

View File

@ -45,6 +45,7 @@ export const Navigation = () => {
partner: [
{
path: "/catalog",
active: "candidate",
name: "Каталог"
},
{
@ -53,6 +54,7 @@ export const Navigation = () => {
},
{
path: "/employees",
active: "calendar",
name: "Персонал"
},
{
@ -80,7 +82,7 @@ export const Navigation = () => {
key={index}
end
to={link.path === "/Quiz" ? link.path : `/profile${link.path}`}
className={currentPath.includes(link.path) ? "active" : ""}
className={currentPath.includes(link.path) || currentPath.includes(link.active) ? "active" : ""}
>
{link.name}
</NavLink>