diff --git a/pages/index.tsx b/pages/index.tsx index c4abbb3bd..51127909a 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -6,9 +6,9 @@ import { GetStaticPropsContext } from 'next'; import { Layout } from 'src/components/common'; import { FeaturedProductsCarousel, FreshProducts, HomeBanner, HomeCategories, HomeCollection, HomeCTA, HomeFeature, HomeRecipe, HomeSubscribe, HomeVideo } from 'src/components/modules/home'; import HomeSpice from 'src/components/modules/home/HomeSpice/HomeSpice'; -import { COLLECTION_SLUG_SPICE, FACET } from 'src/utils/constanst.utils'; +import { FACET } from 'src/utils/constanst.utils'; import { FilterOneVatiant, getFacetIdByName } from 'src/utils/funtion.utils'; -import { CODE_FACET_DISCOUNT, CODE_FACET_FEATURED } from 'src/utils/constanst.utils'; +import { CODE_FACET_DISCOUNT, CODE_FACET_FEATURED,COLLECTION_SLUG_SPICE } from 'src/utils/constanst.utils'; import { getAllFacetValueIdsByParentCode, getAllFacetValuesForFeatuedProducts, getAllPromies, getFreshFacetId } from 'src/utils/funtion.utils'; import { PromiseWithKey } from 'src/utils/types.utils'; @@ -17,11 +17,12 @@ interface Props { freshProducts: ProductCard[], featuredProducts: ProductCard[], collections: Collection[] - spiceProducts:ProductCard[], + spiceProducts:ProductCard[] veggie: ProductCard[], + } -export default function Home({ featuredAndDiscountFacetsValue, - freshProducts, featuredProducts, veggie, +export default function Home({ featuredAndDiscountFacetsValue, veggie, + freshProducts, featuredProducts, collections,spiceProducts }: Props) { return ( @@ -78,6 +79,7 @@ export async function getStaticProps({ props.freshProducts = [] } + //veggie const veggieProductvariables: ProductVariables = { groupByProduct:false }