vendors page and pagination
This commit is contained in:
@@ -1,47 +1,13 @@
|
||||
import Header from '~/components/header'
|
||||
import { Container } from '@chakra-ui/react'
|
||||
import Footer from '~/components/footer'
|
||||
|
||||
import directus from '~/lib/directus'
|
||||
|
||||
import { Html, Head, Main, NextScript } from 'next/document'
|
||||
|
||||
// async function getGlobals() {
|
||||
// return directus.items('globals').readOne(process.env.GLOBALS_ID)
|
||||
// }
|
||||
|
||||
// export async function generateMetadata() {
|
||||
// const globals = await getGlobals()
|
||||
|
||||
// return {
|
||||
// title: globals.meta_title,
|
||||
// description: globals.meta_description,
|
||||
// }
|
||||
// }
|
||||
|
||||
// export default async function RootLayout({ children }) {
|
||||
// const globals = await getGlobals()
|
||||
|
||||
// return (
|
||||
// <H lang="en">
|
||||
// <body>
|
||||
// <Providers>
|
||||
// <Container maxW="3xl">
|
||||
// <Header siteName={globals.site_name} />
|
||||
// {children}
|
||||
// <Footer />
|
||||
// </Container>
|
||||
// </Providers>
|
||||
// </body>
|
||||
// </H>
|
||||
// )
|
||||
// }
|
||||
import Header from '~/components/header'
|
||||
|
||||
export default function Layout({ children }) {
|
||||
return (
|
||||
<>
|
||||
<Container maxW={'8xl'}>
|
||||
<Header />
|
||||
<main>{children}</main>
|
||||
<Footer />
|
||||
</>
|
||||
</Container>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user