guardian routes

This commit is contained in:
Mikola
2024-03-15 18:18:10 +03:00
parent 727d55798a
commit f2ad6b43bd
13 changed files with 267 additions and 165 deletions

View File

@ -81,7 +81,7 @@ export const Navigation = () => {
<NavLink
key={index}
end
to={link.path === "/quiz" ? link.path : `/profile${link.path}`}
to={`/profile${link.path}`}
className={
currentPath.includes(link.path) ||
currentPath.includes(link.active)