|
|
@ -9,7 +9,11 @@ export default function AdminNav({children}){
|
|
|
|
const isAdminPage = useIsAdminPage()
|
|
|
|
const isAdminPage = useIsAdminPage()
|
|
|
|
|
|
|
|
|
|
|
|
if(!isAdminPage)
|
|
|
|
if(!isAdminPage)
|
|
|
|
return children
|
|
|
|
return (
|
|
|
|
|
|
|
|
<main>
|
|
|
|
|
|
|
|
{children}
|
|
|
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className={styles.navContainer}>
|
|
|
|
<div className={styles.navContainer}>
|
|
|
@ -22,9 +26,9 @@ export default function AdminNav({children}){
|
|
|
|
<NavItem icon="local_shipping" href="/admin/shipments">Shipments</NavItem>
|
|
|
|
<NavItem icon="local_shipping" href="/admin/shipments">Shipments</NavItem>
|
|
|
|
<NavItem icon="payment" href="/admin/coupons">Coupons</NavItem>
|
|
|
|
<NavItem icon="payment" href="/admin/coupons">Coupons</NavItem>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className={styles.notNav}>
|
|
|
|
<main className={styles.notNav}>
|
|
|
|
{children}
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|