Skip to content

Commit 5bcd78d

Browse files
authored
chore: update layout.tsx
1 parent 1dcdf7c commit 5bcd78d

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

src/app/(auth)/dashboard/layout.tsx

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import Link from 'next/link';
2-
1+
import ActiveLink from '@/components/Common/ActiveLink';
32
import { LogOutButton } from '@/components/LogOutButton';
43
import { 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
}

0 commit comments

Comments
 (0)