forked from crowetic/commerce
Layout Changes
This commit is contained in:
parent
283455fc79
commit
30a8677816
28
pages/cart.tsx
Normal file
28
pages/cart.tsx
Normal file
@ -0,0 +1,28 @@
|
||||
import { GetStaticPropsContext, InferGetStaticPropsType } from 'next'
|
||||
import getAllProducts from '@lib/bigcommerce/api/operations/get-all-products'
|
||||
import { Layout } from '@components/core'
|
||||
import { Container } from '@components/ui'
|
||||
import getSiteInfo from '@lib/bigcommerce/api/operations/get-site-info'
|
||||
|
||||
export async function getStaticProps({ preview }: GetStaticPropsContext) {
|
||||
const { products } = await getAllProducts()
|
||||
const { categories, brands } = await getSiteInfo()
|
||||
|
||||
return {
|
||||
props: { products, categories, brands },
|
||||
}
|
||||
}
|
||||
|
||||
export default function Home({}: InferGetStaticPropsType<
|
||||
typeof getStaticProps
|
||||
>) {
|
||||
return (
|
||||
<Container>
|
||||
<h2 className="pt-1 pb-4 text-2xl leading-7 font-bold text-primary tracking-wide">
|
||||
My Cart
|
||||
</h2>
|
||||
</Container>
|
||||
)
|
||||
}
|
||||
|
||||
Home.Layout = Layout
|
Loading…
x
Reference in New Issue
Block a user