@@ -82,10 +89,10 @@ export default function Home({
))}
@@ -97,6 +104,7 @@ export default function Home({
variant="slim"
imgWidth={320}
imgHeight={320}
+ imgLayout="fixed"
/>
))}
@@ -115,9 +123,8 @@ export default function Home({
))}
@@ -129,6 +136,7 @@ export default function Home({
variant="slim"
imgWidth={320}
imgHeight={320}
+ imgLayout="fixed"
/>
))}
diff --git a/pages/product/[slug].tsx b/pages/product/[slug].tsx
index 0348bdf45..367a50ec4 100644
--- a/pages/product/[slug].tsx
+++ b/pages/product/[slug].tsx
@@ -51,8 +51,7 @@ export async function getStaticPaths({ locales }: GetStaticPathsContext) {
return arr
}, [])
: products.map((product) => `/product${product.node.path}`),
- // If your store has tons of products, enable fallback mode to improve build times!
- fallback: false,
+ fallback: 'blocking',
}
}
diff --git a/pages/wishlist.tsx b/pages/wishlist.tsx
index fbfa19373..ee81857de 100644
--- a/pages/wishlist.tsx
+++ b/pages/wishlist.tsx
@@ -4,9 +4,9 @@ import getAllPages from '@bigcommerce/storefront-data-hooks/api/operations/get-a
import useWishlist from '@bigcommerce/storefront-data-hooks/wishlist/use-wishlist'
import { Layout } from '@components/common'
import { Heart } from '@components/icons'
-import { Container, Text } from '@components/ui'
+import { Text, Container } from '@components/ui'
import { WishlistCard } from '@components/wishlist'
-import { Transition } from '@headlessui/react'
+import { defatultPageProps } from '@lib/defaults'
export async function getStaticProps({
preview,
@@ -15,7 +15,7 @@ export async function getStaticProps({
const config = getConfig({ locale })
const { pages } = await getAllPages({ config, preview })
return {
- props: { pages },
+ props: { ...defatultPageProps, pages },
}
}
@@ -28,45 +28,22 @@ export default function Wishlist() {
My Wishlist
{isEmpty ? (
-
-
-
-
-
-
-
- Your wishlist is empty
-
-
- Biscuit oat cake wafer icing ice cream tiramisu pudding
- cupcake.
-
-
-
-
+
+
+
+
+
+ Your wishlist is empty
+
+
+ Biscuit oat cake wafer icing ice cream tiramisu pudding cupcake.
+
+
) : (
-
- {data &&
- data.items?.map((item) => (
-
-
-
- ))}
-
+ data &&
+ data.items?.map((item) => (
+
+ ))
)}
diff --git a/public/bg-products.svg b/public/bg-products.svg
new file mode 100644
index 000000000..2118c3277
--- /dev/null
+++ b/public/bg-products.svg
@@ -0,0 +1,7 @@
+