@@ -42,7 +42,24 @@ export default function Layout({
4242} : LayoutProps ) {
4343 return (
4444 < div className = "space-y-6 p-10 pb-16" >
45- < div className = "space-y-0.5" >
45+ < div className = "block lg:hidden w-full [&>button]:w-full pb-2 space-y-2" >
46+ < Label > Settings Menu</ Label >
47+ < Select className = "w-full" onValueChange = { ( href ) => window . location . href = href } value = { window . location . pathname } >
48+ < SelectTrigger className = "w-[180px]" >
49+ < SelectValue placeholder = { sidebarNavItems . find ( item => window . location . pathname === item . href ) ?. title || "Settings Menu" } > </ SelectValue >
50+ </ SelectTrigger >
51+ < SelectContent >
52+ < SelectGroup >
53+ { sidebarNavItems . map ( ( item ) => (
54+ < SelectItem selected = { window . location . pathname == item . href } key = { item . href } value = { item . href } >
55+ { item . title }
56+ </ SelectItem >
57+ ) ) }
58+ </ SelectGroup >
59+ </ SelectContent >
60+ </ Select >
61+ </ div >
62+ < div className = "space-y-0.5 lg:block hidden" >
4663 < h2 className = "text-2xl font-bold tracking-tight" > Settings</ h2 >
4764 < p className = "text-muted-foreground" >
4865 Manage your profile and account settings
@@ -70,23 +87,6 @@ export default function Layout({
7087 </ Button >
7188 ) ) }
7289 </ nav >
73- < div className = "block lg:hidden w-full [&>button]:w-full [&>button]:mt-2" >
74- < Label > Settings Menu</ Label >
75- < Select className = "w-full" onValueChange = { ( href ) => window . location . href = href } value = { window . location . pathname } >
76- < SelectTrigger className = "w-[180px]" >
77- < SelectValue placeholder = { sidebarNavItems . find ( item => window . location . pathname === item . href ) ?. title || "Settings Menu" } > </ SelectValue >
78- </ SelectTrigger >
79- < SelectContent >
80- < SelectGroup >
81- { sidebarNavItems . map ( ( item ) => (
82- < SelectItem selected = { window . location . pathname == item . href } key = { item . href } value = { item . href } >
83- { item . title }
84- </ SelectItem >
85- ) ) }
86- </ SelectGroup >
87- </ SelectContent >
88- </ Select >
89- </ div >
9090 </ aside >
9191 < div className = "flex-1 lg:max-w-2xl" >
9292 < section className = "max-w-xl" >
0 commit comments