Padding fixes

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

@ -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>
) )
} }

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

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

Loading…
Cancel
Save