Merge pull request 'trackerTask' (#19) from trackerTask into main
Reviewed-on: #19
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user