mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
ProductGrid builds a massive infinite grid
This commit is contained in:
@@ -13,7 +13,22 @@ export async function getStaticProps({ preview }: GetStaticPropsContext) {
|
||||
export default function Home({
|
||||
products,
|
||||
}: InferGetStaticPropsType<typeof getStaticProps>) {
|
||||
return <ProductGrid products={products} />
|
||||
return (
|
||||
<>
|
||||
<ProductGrid
|
||||
products={[
|
||||
...products,
|
||||
...products,
|
||||
...products,
|
||||
...products,
|
||||
...products,
|
||||
...products,
|
||||
]}
|
||||
/>
|
||||
<div>asdsasad</div>
|
||||
<ProductGrid products={products.slice(3)} />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
Home.Layout = Layout
|
||||
|
Reference in New Issue
Block a user