Added shared layout with _app

This commit is contained in:
Luis Alvarez
2020-10-01 21:30:08 -05:00
parent 6587ab10ae
commit cf7c85e3ba
4 changed files with 21 additions and 15 deletions

View File

@@ -14,9 +14,7 @@ export default function Home({
products,
}: InferGetStaticPropsType<typeof getStaticProps>) {
console.log('PRODUCTS', products)
return (
<Layout>
<ProductGrid products={products} />
</Layout>
)
return <ProductGrid products={products} />
}
Home.Layout = Layout