From eb373601fb2c11f6d5aa1d5b7c7cf16dc48beae8 Mon Sep 17 00:00:00 2001 From: gimenes Date: Tue, 24 Oct 2023 10:06:01 -0300 Subject: [PATCH] bump and use new partials --- components/product/ProductShelfTabbed.tsx | 4 ++-- components/product/ProductVariantSelector.tsx | 9 +++++---- deno.json | 4 ++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/components/product/ProductShelfTabbed.tsx b/components/product/ProductShelfTabbed.tsx index 52eb57ac..9f0da69d 100644 --- a/components/product/ProductShelfTabbed.tsx +++ b/components/product/ProductShelfTabbed.tsx @@ -11,7 +11,7 @@ import { useOffer } from "$store/sdk/useOffer.ts"; import { usePlatform } from "$store/sdk/usePlatform.tsx"; import type { Product } from "apps/commerce/types.ts"; import { mapProductToAnalyticsItem } from "apps/commerce/utils/productToAnalyticsItem.ts"; -import { usePartial } from "apps/website/hooks/usePartial.ts"; +import { usePartialSection } from "deco/hooks/usePartialSection.ts"; /** @titleBy title */ interface Tab { @@ -66,7 +66,7 @@ function TabbedProductShelf({ {tabs.map((tab, index) => ( diff --git a/components/product/ProductVariantSelector.tsx b/components/product/ProductVariantSelector.tsx index f3225310..c3cc686c 100644 --- a/components/product/ProductVariantSelector.tsx +++ b/components/product/ProductVariantSelector.tsx @@ -1,7 +1,7 @@ import Avatar from "$store/components/ui/Avatar.tsx"; import { useVariantPossibilities } from "$store/sdk/useVariantPossiblities.ts"; import type { Product } from "apps/commerce/types.ts"; -import { usePartial } from "apps/website/hooks/usePartial.ts"; +import { usePartialSection } from "deco/hooks/usePartialSection.ts"; interface Props { product: Product; @@ -19,11 +19,12 @@ function VariantSelector({ product }: Props) { {name}