File tree Expand file tree Collapse file tree 1 file changed +18
-10
lines changed
Expand file tree Collapse file tree 1 file changed +18
-10
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 { LogOutButton } from '@/components/LogOutButton' ;
43import { BaseTemplate } from '@/templates/BaseTemplate' ;
54
@@ -9,22 +8,31 @@ const DashboardLayout = (props: { children: React.ReactNode }) => {
98 leftNav = {
109 < >
1110 < li >
12- < Link href = "/" className = "border-none text-gray-700 hover:text-gray-900" >
11+ < ActiveLink
12+ href = "/"
13+ activeClassName = "text-blue-400 border-b-2 border-blue-400 hover:text-blue-400"
14+ className = "border-none text-gray-700 hover:text-gray-900"
15+ >
1316 Home
14- </ Link >
17+ </ ActiveLink >
1518 </ li >
1619 < li >
17- < Link href = "/dashboard" className = "border-none text-gray-700 hover:text-gray-900" >
20+ < ActiveLink
21+ href = "/dashboard"
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 Dashboard
19- </ Link >
26+ </ ActiveLink >
2027 </ li >
2128 < li >
22- < Link
23- href = "/dashboard/user-profile/"
24- className = "border-none text-gray-700 hover:text-gray-900"
29+ < ActiveLink
30+ href = "/dashboard/user-profile"
31+ activeClassName = "text-blue-400 border-b-2 border-blue-400 hover:text-blue-400"
32+ className = "text-gray-700 hover:text-gray-900"
2533 >
2634 Profile
27- </ Link >
35+ </ ActiveLink >
2836 </ li >
2937 </ >
3038 }
You can’t perform that action at this time.
0 commit comments