mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Apply prettier over all files
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
import { GetStaticPropsContext, InferGetStaticPropsType } from "next";
|
||||
import getAllProducts from "lib/bigcommerce/api/operations/get-all-products";
|
||||
import { Layout } from "@components/core";
|
||||
import { ProductGrid } from "@components/product";
|
||||
import { GetStaticPropsContext, InferGetStaticPropsType } from 'next'
|
||||
import getAllProducts from 'lib/bigcommerce/api/operations/get-all-products'
|
||||
import { Layout } from '@components/core'
|
||||
import { ProductGrid } from '@components/product'
|
||||
|
||||
export async function getStaticProps({ preview }: GetStaticPropsContext) {
|
||||
const { products } = await getAllProducts();
|
||||
const { products } = await getAllProducts()
|
||||
return {
|
||||
props: { products },
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export default function Home({
|
||||
products,
|
||||
}: InferGetStaticPropsType<typeof getStaticProps>) {
|
||||
console.log("PRODUCTS", products);
|
||||
console.log('PRODUCTS', products)
|
||||
return (
|
||||
<Layout>
|
||||
<ProductGrid products={products} />
|
||||
</Layout>
|
||||
);
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user