From dcf199c14af945d5a051649946ff8c7da2b2ae77 Mon Sep 17 00:00:00 2001 From: georgetonietti Date: Fri, 13 Dec 2024 10:38:44 -0300 Subject: [PATCH] fix: bugs fixed --- components/shipping/Results.tsx | 4 ++-- sections/Product/ProductDetails.tsx | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/components/shipping/Results.tsx b/components/shipping/Results.tsx index 9c9c9a4..55268c9 100644 --- a/components/shipping/Results.tsx +++ b/components/shipping/Results.tsx @@ -1,6 +1,6 @@ import { AppContext } from "../../apps/deco/wake.ts"; -import { type ComponentProps } from "../../sections/Component.tsx"; +import { type SectionProps } from "@deco/deco"; import { ShippingQuotesQuery } from "apps/wake/utils/graphql/storefront.graphql.gen.ts"; import type { Props as SKU } from "apps/wake/actions/shippingSimulation.ts"; @@ -27,7 +27,7 @@ export async function action(props: Props, req: Request, ctx: AppContext) { } } -export default function Results({ result }: ComponentProps) { +export default function Results({ result }: SectionProps) { if (!result) { return ( diff --git a/sections/Product/ProductDetails.tsx b/sections/Product/ProductDetails.tsx index 60ac432..82e4899 100644 --- a/sections/Product/ProductDetails.tsx +++ b/sections/Product/ProductDetails.tsx @@ -33,9 +33,7 @@ export default function ProductDetails(props: Props) { } const { productID, aggregateRating, review } = props?.page?.product - console.log(review) - console.log(aggregateRating) - + return ( <>