nav url link check

This commit is contained in:
VividTruthKeeper 2022-08-06 01:57:38 +05:00
parent d811c9ccb1
commit 6c1c8a6b48
1 changed files with 5 additions and 1 deletions

View File

@ -52,7 +52,11 @@ const Nav = ({ dropdown, setDropdown }: dropdown) => {
>
<Link to={"/news"}>Новости и события</Link>
</li>
<li>
<li
className={
location.pathname.includes("tournaments") ? "active" : ""
}
>
<Link to={"/tournaments"}>Турниры</Link>
</li>
<li