Padding fixes

main
Ashelyn Dawn 5 years ago
parent 27991d4f9d
commit 4fd325fa8f

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

@ -46,13 +46,11 @@ function Layout({ Component, pageProps, user, cart: _cart }){
<CartContextProvider value={cartState}>
<UserContextProvider value={user}>
<Header/>
<main>
<ErrorBoundary>
<AdminNav>
<Component {...pageProps} />
</AdminNav>
</ErrorBoundary>
</main>
<Footer/>
</UserContextProvider>
</CartContextProvider>

@ -40,6 +40,7 @@ main > h2:first-child {
main {
font-family: 'Cormorant Infant',serif;
padding-bottom: 15px;
}
main > p {

Loading…
Cancel
Save