@@ -10,6 +10,7 @@ import { Suspense } from "react";
1010import ClientToast from "@/components/shared/ClientToast" ;
1111import { redirect } from "next/navigation" ;
1212import { getUser } from "db/functions" ;
13+ import MobileAdminTabSelect from "@/components/shared/MobileAdminTabSelect" ;
1314
1415interface AdminLayoutProps {
1516 children : React . ReactNode ;
@@ -38,7 +39,7 @@ export default async function AdminLayout({ children }: AdminLayoutProps) {
3839 < >
3940 < ClientToast />
4041 < div className = "fixed z-20 grid h-16 w-full grid-cols-2 bg-nav px-5" >
41- < div className = "flex items-center gap-x-4" >
42+ < div className = "flex max-w-full items-center gap-x-4" >
4243 < Link href = { "/" } className = "mr-5 flex items-center gap-x-2" >
4344 < Image
4445 src = { c . icon . svg }
@@ -77,9 +78,17 @@ export default async function AdminLayout({ children }: AdminLayoutProps) {
7778 </ Link >
7879 < ProfileButton />
7980 </ div >
81+ { /*show dorpdown for mobile*/ }
82+ < div className = { "m-4 flex gap-4 justify-self-end md:hidden" } >
83+ < MobileAdminTabSelect />
84+ < ProfileButton />
85+ </ div >
86+
8087 < div className = "flex items-center justify-end gap-x-4 md:hidden" > </ div >
8188 </ div >
82- < div className = "fixed z-20 mt-16 flex h-12 w-full border-b border-b-border bg-nav px-5" >
89+
90+ { /*show tabs for non-mobile*/ }
91+ < div className = "fixed z-20 mt-16 hidden h-12 w-full border-b border-b-border bg-nav px-5 xl:flex" >
8392 { Object . entries ( c . dashPaths . admin ) . map ( ( [ name , path ] ) => (
8493 < DashNavItem key = { name } name = { name } path = { path } />
8594 ) ) }
0 commit comments