File tree Expand file tree Collapse file tree 1 file changed +31
-12
lines changed
Expand file tree Collapse file tree 1 file changed +31
-12
lines changed Original file line number Diff line number Diff line change 1- import Link from 'next/link' ;
2-
1+ import ActiveLink from '@/components/Common/ActiveLink' ;
32import { BaseTemplate } from '@/templates/BaseTemplate' ;
43
54const Layout = ( props : { children : React . ReactNode } ) => {
@@ -8,34 +7,54 @@ const Layout = (props: { children: React.ReactNode }) => {
87 leftNav = {
98 < >
109 < li >
11- < Link href = "/" className = "border-none text-gray-700 hover:text-gray-900" >
10+ < ActiveLink
11+ href = "/"
12+ activeClassName = "text-blue-400 border-b-2 border-blue-400 hover:text-blue-400"
13+ className = "text-gray-700 hover:text-gray-900"
14+ >
1215 Home
13- </ Link >
16+ </ ActiveLink >
1417 </ li >
1518
1619 < li >
17- < Link href = "/about/" className = "border-none text-gray-700 hover:text-gray-900" >
20+ < ActiveLink
21+ href = "/about"
22+ activeClassName = "text-blue-400 border-b-2 border-blue-400 hover:text-blue-400"
23+ className = "text-gray-700 hover:text-gray-900"
24+ >
1825 About
19- </ Link >
26+ </ ActiveLink >
2027 </ li >
2128 < li >
22- < Link href = "/portfolio/" className = "border-none text-gray-700 hover:text-gray-900" >
29+ < ActiveLink
30+ href = "/portfolio"
31+ activeClassName = "text-blue-400 border-b-2 border-blue-400 hover:text-blue-400"
32+ className = "text-gray-700 hover:text-gray-900"
33+ >
2334 Portfolio
24- </ Link >
35+ </ ActiveLink >
2536 </ li >
2637 < li >
27- < Link href = "/dashboard/" className = "border-none text-gray-700 hover:text-gray-900" >
38+ < ActiveLink
39+ href = "/dashboard"
40+ activeClassName = "text-blue-400 border-b-2 border-blue-400 hover:text-blue-400"
41+ className = "text-gray-700 hover:text-gray-900"
42+ >
2843 Protected(Auth)
29- </ Link >
44+ </ ActiveLink >
3045 </ li >
3146 </ >
3247 }
3348 rightNav = {
3449 < div >
3550 < li >
36- < Link href = "/signin/" className = "border-none text-gray-700 hover:text-gray-900" >
51+ < ActiveLink
52+ href = "/signin"
53+ activeClassName = "text-blue-400 border-b-2 border-blue-400 hover:text-blue-400"
54+ className = "text-gray-700 hover:text-gray-900"
55+ >
3756 SignIn
38- </ Link >
57+ </ ActiveLink >
3958 </ li >
4059 </ div >
4160 }
You can’t perform that action at this time.
0 commit comments