Skip to content

Commit 7d6f55d

Browse files
committed
chore: disable button animation on menu items at all
1 parent c54b858 commit 7d6f55d

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

app/components/molecules/MenuItems.tsx

+10-16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NavLink } from "@remix-run/react";
1+
import { Link } from "@remix-run/react";
22

33
/**
44
* Menu items component
@@ -9,39 +9,33 @@ export const MenuItems = () => {
99
return (
1010
<ul className="menu menu-horizontal menu-md">
1111
<li>
12-
<NavLink
12+
<Link
1313
to="/blog"
14-
className={({ isActive }) =>
15-
`btn btn-ghost text-lg sm:text-xl ${isActive ? "active" : "no-animation"}`
16-
}
14+
className="btn btn-ghost no-animation text-lg sm:text-xl"
1715
style={{ fontWeight: "bold" }}
1816
>
1917
Blog
20-
</NavLink>
18+
</Link>
2119
</li>
2220
<li>
23-
<NavLink
21+
<Link
2422
to="/Gleb_Khaykin.pdf"
2523
prefetch="intent"
2624
target="_blank"
27-
className={({ isActive }) =>
28-
`btn btn-ghost text-lg sm:text-xl ${isActive ? "active" : "no-animation"}`
29-
}
25+
className="btn btn-ghost no-animation text-lg sm:text-xl"
3026
style={{ fontWeight: "bold" }}
3127
>
3228
CV
33-
</NavLink>
29+
</Link>
3430
</li>
3531
<li>
36-
<NavLink
32+
<Link
3733
to="/"
38-
className={({ isActive }) =>
39-
`btn btn-ghost text-lg sm:text-xl ${isActive ? "active" : "no-animation"}`
40-
}
34+
className="btn btn-ghost no-animation text-lg sm:text-xl"
4135
style={{ fontWeight: "bold" }}
4236
>
4337
About
44-
</NavLink>
38+
</Link>
4539
</li>
4640
</ul>
4741
);

app/components/molecules/MobileMenuItems.tsx

+9-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ export const MobileMenuItems = () => (
1313
</summary>
1414
<ul className="menu dropdown-content absolute right-0 z-[1] mt-2 w-28 rounded-lg bg-white text-black shadow-lg">
1515
<li>
16-
<Link to="/blog" className="btn btn-ghost text-base hover:bg-gray-100">
16+
<Link
17+
to="/blog"
18+
className="btn btn-ghost no-animation text-base hover:bg-gray-100"
19+
>
1720
Blog
1821
</Link>
1922
</li>
@@ -23,14 +26,17 @@ export const MobileMenuItems = () => (
2326
to="/Gleb_Khaykin.pdf"
2427
prefetch="intent"
2528
target="_blank"
26-
className="btn btn-ghost text-base hover:bg-gray-100"
29+
className="btn btn-ghost no-animation text-base hover:bg-gray-100"
2730
>
2831
CV
2932
</Link>
3033
</li>
3134
<hr className="my-1 border-t border-gray-200" />
3235
<li>
33-
<Link to="/" className="btn btn-ghost text-base hover:bg-gray-100">
36+
<Link
37+
to="/"
38+
className="btn btn-ghost no-animation text-base hover:bg-gray-100"
39+
>
3440
About
3541
</Link>
3642
</li>

0 commit comments

Comments
 (0)