@@ -41,12 +41,6 @@ import { useQuery } from '@tanstack/react-query';
41
41
import { getTodaysQuestion } from '@/actions/questions/get-today' ;
42
42
import ComingSoonChip from '../coming-soon' ;
43
43
import { useUser } from '@/hooks/useUser' ;
44
- import {
45
- Tooltip ,
46
- TooltipContent ,
47
- TooltipProvider ,
48
- TooltipTrigger ,
49
- } from '@/components/ui/tooltip' ;
50
44
51
45
export function AppSidebar ( ) {
52
46
const pathname = usePathname ( ) ;
@@ -89,7 +83,9 @@ export function AppSidebar() {
89
83
{
90
84
title : (
91
85
< >
92
- { user ?. userLevel === 'ADMIN' || user ?. userLevel === 'PREMIUM' ? (
86
+ { user ?. userLevel === 'ADMIN' ||
87
+ ( user ?. userLevel === 'PREMIUM' &&
88
+ ! pathname . startsWith ( '/settings' ) ) ? (
93
89
< p > Roadmap</ p >
94
90
) : (
95
91
< div className = "flex items-center gap-3" >
@@ -105,7 +101,7 @@ export function AppSidebar() {
105
101
} ,
106
102
{
107
103
title : 'Stats' ,
108
- url : '# ' ,
104
+ url : '/ ' ,
109
105
icon : ChartBarIncreasing ,
110
106
chip : ComingSoonChip ,
111
107
} ,
@@ -192,9 +188,7 @@ export function AppSidebar() {
192
188
< SidebarMenuButton asChild >
193
189
< div className = "flex items-center w-full" >
194
190
{ item . icon && < item . icon /> }
195
- < span className = "text-sm font-ubuntutoshi" >
196
- < > { item . title } </ >
197
- </ span >
191
+ < span className = "text-sm font-ubuntutoshi" > { item . title } </ span >
198
192
< div className = "ms-auto" > { item . chip && < item . chip /> } </ div >
199
193
</ div >
200
194
</ SidebarMenuButton >
@@ -208,9 +202,7 @@ export function AppSidebar() {
208
202
{ item . disabled ? (
209
203
< SidebarMenuItem className = "flex items-center font-ubuntu text-sm p-2 gap-x-2 opacity-50 hover:cursor-not-allowed h-8" >
210
204
{ item . icon && < item . icon /> }
211
- < span className = "text-sm font-ubuntutoshi" >
212
- < > { item . title } </ >
213
- </ span >
205
+ < span className = "text-sm font-ubuntutoshi" > { item . title } </ span >
214
206
< div className = "ms-auto" > { item . chip && < item . chip /> } </ div >
215
207
</ SidebarMenuItem >
216
208
) : (
0 commit comments