1
1
"use client" ;
2
2
3
3
import * as React from "react" ;
4
- import { Moon , Sun , LogOut , User , Settings , BookA , FileQuestion , ChevronRight , ChevronLeft } from 'lucide-react' ;
4
+ import {
5
+ Moon ,
6
+ Sun ,
7
+ LogOut ,
8
+ User ,
9
+ Settings ,
10
+ BookA ,
11
+ FileQuestion ,
12
+ ChevronRight ,
13
+ ChevronLeft ,
14
+ } from "lucide-react" ;
5
15
import { useTheme } from "next-themes" ;
6
16
import { usePathname } from "next/navigation" ;
7
17
import Link from "next/link" ;
@@ -45,9 +55,7 @@ export function AppSidebar() {
45
55
) }
46
56
>
47
57
< div className = "p-4 border-b flex items-center justify-between" >
48
- { ! isCollapsed && (
49
- < h2 className = "text-lg font-semibold" > Leetcode Journal</ h2 >
50
- ) }
58
+ { ! isCollapsed && < h2 className = "text-lg font-semibold" > Dashboard</ h2 > }
51
59
< Button
52
60
variant = "ghost"
53
61
size = "icon"
@@ -77,7 +85,9 @@ export function AppSidebar() {
77
85
isCollapsed ? "justify-center" : "justify-start"
78
86
) }
79
87
>
80
- < item . icon className = { cn ( "h-6 w-6" , isCollapsed ? "" : "mr-4" ) } />
88
+ < item . icon
89
+ className = { cn ( "h-6 w-6" , isCollapsed ? "" : "mr-2" ) }
90
+ />
81
91
{ ! isCollapsed && < span > { item . title } </ span > }
82
92
</ Link >
83
93
</ li >
@@ -86,9 +96,14 @@ export function AppSidebar() {
86
96
</ ul >
87
97
</ nav >
88
98
< div className = { cn ( "p-3 border-t" ) } >
89
- < div className = { cn ( "flex" , isCollapsed ? "flex-col space-y-2" : "justify-between" ) } >
99
+ < div
100
+ className = { cn (
101
+ "flex" ,
102
+ isCollapsed ? "flex-col space-y-2" : "justify-between"
103
+ ) }
104
+ >
90
105
< Button
91
- className = "rounded-full"
106
+ className = "rounded-full"
92
107
size = "icon"
93
108
onClick = { ( ) => setTheme ( theme === "dark" ? "light" : "dark" ) }
94
109
>
@@ -104,4 +119,4 @@ export function AppSidebar() {
104
119
</ div >
105
120
</ aside >
106
121
) ;
107
- }
122
+ }
0 commit comments