File tree 2 files changed +19
-19
lines changed
2 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 1
- import { NavLink } from "@remix-run/react" ;
1
+ import { Link } from "@remix-run/react" ;
2
2
3
3
/**
4
4
* Menu items component
@@ -9,39 +9,33 @@ export const MenuItems = () => {
9
9
return (
10
10
< ul className = "menu menu-horizontal menu-md" >
11
11
< li >
12
- < NavLink
12
+ < Link
13
13
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"
17
15
style = { { fontWeight : "bold" } }
18
16
>
19
17
Blog
20
- </ NavLink >
18
+ </ Link >
21
19
</ li >
22
20
< li >
23
- < NavLink
21
+ < Link
24
22
to = "/Gleb_Khaykin.pdf"
25
23
prefetch = "intent"
26
24
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"
30
26
style = { { fontWeight : "bold" } }
31
27
>
32
28
CV
33
- </ NavLink >
29
+ </ Link >
34
30
</ li >
35
31
< li >
36
- < NavLink
32
+ < Link
37
33
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"
41
35
style = { { fontWeight : "bold" } }
42
36
>
43
37
About
44
- </ NavLink >
38
+ </ Link >
45
39
</ li >
46
40
</ ul >
47
41
) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ export const MobileMenuItems = () => (
13
13
</ summary >
14
14
< ul className = "menu dropdown-content absolute right-0 z-[1] mt-2 w-28 rounded-lg bg-white text-black shadow-lg" >
15
15
< 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
+ >
17
20
Blog
18
21
</ Link >
19
22
</ li >
@@ -23,14 +26,17 @@ export const MobileMenuItems = () => (
23
26
to = "/Gleb_Khaykin.pdf"
24
27
prefetch = "intent"
25
28
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"
27
30
>
28
31
CV
29
32
</ Link >
30
33
</ li >
31
34
< hr className = "my-1 border-t border-gray-200" />
32
35
< 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
+ >
34
40
About
35
41
</ Link >
36
42
</ li >
You can’t perform that action at this time.
0 commit comments