This commit is contained in:
Victor Batischev
2024-02-14 16:34:35 +03:00
5 changed files with 23 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,12 @@ 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>