From 755a424361d2239d719454aa5a86602313cf46af Mon Sep 17 00:00:00 2001 From: Leonardo Matos Date: Mon, 16 Oct 2023 13:43:55 -0300 Subject: [PATCH] chore(storefront): Update `product-details` section props types with optional `hasSpecifications` --- packages/storefront/src/lib/layouts/use-page-main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/storefront/src/lib/layouts/use-page-main.ts b/packages/storefront/src/lib/layouts/use-page-main.ts index 5413ebfbf..b3f1401d3 100644 --- a/packages/storefront/src/lib/layouts/use-page-main.ts +++ b/packages/storefront/src/lib/layouts/use-page-main.ts @@ -42,6 +42,7 @@ export const usePageHero = async ({ routeContext }: Props) => { }; type CustomSection = { type: `${string}:${string}`, props: any }; +type ProductDetailsProps = { hasDescription?: boolean, hasSpecifications?: boolean }; export const usePageSections = async ({ routeContext, handleCustomSection }: Props) => { @@ -50,7 +51,7 @@ export const usePageSections = async T | { type: 'product-shelf', props: UseProductShelfProps } | { type: 'banners-grid', props: { banners: UseBannerProps[] } } - | { type: 'product-details', props: { hasDescription?: boolean } } + | { type: 'product-details', props: ProductDetailsProps } | { type: 'breadcrumbs', props: {} } | { type: 'related-products', props: {} } | { type: 'doc-description', props: {} }