From 30a867781655f2504045890da9c3778e01e8ae21 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Tue, 13 Oct 2020 10:04:26 -0300 Subject: [PATCH] Layout Changes --- pages/cart.tsx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/cart.tsx diff --git a/pages/cart.tsx b/pages/cart.tsx new file mode 100644 index 000000000..c81b420d6 --- /dev/null +++ b/pages/cart.tsx @@ -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 ( + +

+ My Cart +

+
+ ) +} + +Home.Layout = Layout