diff --git a/components/product/ProductInfo.tsx b/components/product/ProductInfo.tsx index c847887..fd88f0a 100644 --- a/components/product/ProductInfo.tsx +++ b/components/product/ProductInfo.tsx @@ -18,13 +18,11 @@ import { ProductDetailsPage } from "apps/commerce/types.ts"; import { mapProductToAnalyticsItem } from "apps/commerce/utils/productToAnalyticsItem.ts"; import ProductSelector from "./ProductVariantSelector.tsx"; import Icon from "deco-sites/maconequiio/components/ui/Icon.tsx"; -import type { Color } from "deco-sites/maconequiio/loaders/Colors/colors.ts"; import Variants from "deco-sites/maconequiio/components/product/Variants.tsx"; import { useVariantPossibilities } from "deco-sites/maconequiio/sdk/useVariantPossiblities.ts"; export interface Props { page: ProductDetailsPage | null; - colors: Color[]; layout: { /** * @title Product Name @@ -35,7 +33,7 @@ export interface Props { }; } -function ProductInfo({ page, colors = [], layout }: Props) { +function ProductInfo({ page, layout }: Props) { const platform = usePlatform(); const id = useId(); @@ -144,7 +142,6 @@ function ProductInfo({ page, colors = [], layout }: Props) { )} diff --git a/components/product/ProductVariantSelector.tsx b/components/product/ProductVariantSelector.tsx index 66564fd..6afad53 100644 --- a/components/product/ProductVariantSelector.tsx +++ b/components/product/ProductVariantSelector.tsx @@ -1,15 +1,13 @@ import Avatar from "$store/components/ui/Avatar.tsx"; import { type Possibilities } from "$store/sdk/useVariantPossiblities.ts"; import { relative } from "$store/sdk/url.ts"; -import type { Color } from "deco-sites/maconequiio/loaders/Colors/colors.ts"; interface Props { possibilities: Possibilities; url: string; - colors: Color[]; } -function VariantSelector({ possibilities, url, colors }: Props) { +function VariantSelector({ possibilities, url }: Props) { return (