diff --git a/pages/cart.tsx b/pages/cart.tsx
index 795284fb8..3e1dc6573 100644
--- a/pages/cart.tsx
+++ b/pages/cart.tsx
@@ -84,7 +84,7 @@ export default function Cart() {
My Cart
Review your Order
- {data!.lineItems.map((item) => (
+ {data!.lineItems.map((item: any) => (
- {products.slice(0, 3).map((product, i) => (
+ {products.slice(0, 3).map((product: any, i: number) => (
@@ -57,7 +57,7 @@ export default function Home({
description="Cupcake ipsum dolor sit amet lemon drops pastry cotton candy. Sweet carrot cake macaroon bonbon croissant fruitcake jujubes macaroon oat cake. Soufflé bonbon caramels jelly beans. Tiramisu sweet roll cheesecake pie carrot cake. "
/>
- {products.slice(0, 3).map((product, i) => (
+ {products.slice(0, 3).map((product: any, i: number) => (
diff --git a/pages/product/[slug].tsx b/pages/product/[slug].tsx
index 3988705fe..4d49d93d7 100644
--- a/pages/product/[slug].tsx
+++ b/pages/product/[slug].tsx
@@ -52,12 +52,12 @@ export async function getStaticPaths({ locales }: GetStaticPathsContext) {
paths: locales
? locales.reduce((arr, locale) => {
// Add a product path for every locale
- products.forEach((product) => {
+ products.forEach((product: any) => {
arr.push(`/${locale}/product${product.path}`)
})
return arr
}, [])
- : products.map((product) => `/product${product.path}`),
+ : products.map((product: any) => `/product${product.path}`),
fallback: 'blocking',
}
}
diff --git a/pages/search.tsx b/pages/search.tsx
index 15d1d7571..659332255 100644
--- a/pages/search.tsx
+++ b/pages/search.tsx
@@ -37,7 +37,10 @@ export async function getStaticProps({
}: GetStaticPropsContext) {
const config = { locale, locales }
const { pages } = await commerce.getAllPages({ config, preview })
- const { categories, brands } = await commerce.getSiteInfo({ config, preview })
+ const { categories, brands } = await commerce.getSiteInfo({
+ config,
+ preview,
+ })
return {
props: {
pages,
@@ -64,9 +67,9 @@ export default function Search({
const query = filterQuery({ sort })
const { pathname, category, brand } = useSearchMeta(asPath)
- const activeCategory = categories.find((cat) => cat.slug === category)
+ const activeCategory = categories.find((cat: any) => cat.slug === category)
const activeBrand = brands.find(
- (b) => getSlug(b.node.path) === `brands/${brand}`
+ (b: any) => getSlug(b.node.path) === `brands/${brand}`
)?.node
const { data } = useSearch({
@@ -155,7 +158,7 @@ export default function Search({
- {categories.map((cat) => (
+ {categories.map((cat: any) => (
-
- {brands.flatMap(({ node }) => (
+ {brands.flatMap(({ node }: { node: any }) => (