File tree Expand file tree Collapse file tree 3 files changed +17
-9
lines changed
components/dashboardComponents Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ export default function Dashboard() {
115
115
{ userDetails . profile . realName }
116
116
</ h1 >
117
117
< p className = "text-sm text-gray-600 dark:text-gray-400 mb-3" >
118
- @{ userDetails . username } • Global Rank #{ userDetails . profile . ranking }
118
+ @{ userDetails . username } • Rank #{ userDetails . profile . ranking }
119
119
</ p >
120
120
< div className = "flex gap-4 justify-center md:justify-start" >
121
121
< SocialLink href = { userDetails . githubUrl } icon = { < Github size = { 20 } /> } />
Original file line number Diff line number Diff line change @@ -82,10 +82,23 @@ export const DashboardNavbar = () => {
82
82
</ div >
83
83
84
84
{ /* <!-- Desktop --> */ }
85
- < div className = "hidden lg:flex gap-2" >
86
- < ToggleTheme />
87
- < Logout />
85
+ < div className = "flex gap-2" >
86
+ { SidebarData . map ( ( { href, title } ) => (
87
+ < Button
88
+ key = { href }
89
+ onClick = { ( ) => setIsOpen ( false ) }
90
+ asChild
91
+ variant = "ghost"
92
+ className = "justify-start text-base"
93
+ >
94
+ < Link href = { href } > { title } </ Link >
95
+ </ Button >
96
+ ) ) }
88
97
</ div >
98
+ < div className = "hidden lg:flex gap-2" >
99
+ < ToggleTheme />
100
+ < Logout />
101
+ </ div >
89
102
</ header >
90
103
) ;
91
104
} ;
Original file line number Diff line number Diff line change @@ -11,10 +11,5 @@ export const SidebarData = [
11
11
icon : BookA ,
12
12
href : "/dashboard/journal" ,
13
13
} ,
14
- {
15
- title : "Settings" ,
16
- icon : Settings ,
17
- href : "/dashboard/settings" ,
18
- } ,
19
14
] ;
20
15
You can’t perform that action at this time.
0 commit comments