default path

This commit is contained in:
VividTruthKeeper 2023-02-26 20:01:43 +05:00
parent 6f311e398e
commit 2a3a9dc9c2
1 changed files with 11 additions and 0 deletions

View File

@ -31,6 +31,17 @@ const NavDropdown = ({
animate={dropdownOpen ? "active" : "rest"}
>
<ul>
<li onClick={() => onClickLink(0)} key={uuidv4()}>
<Link to="/">
<motion.span
variants={dropdownMotion}
initial={"linkRest"}
animate={activeLink === 0 ? "linkActive" : "linkRest"}
>
Главная
</motion.span>
</Link>
</li>
{data.data.map((el) => (
<li onClick={() => onClickLink(el.id)} key={uuidv4()}>
<Link to={`/category/${el.id}`}>