From 50476adc35a67907bfd036e20f78dcb93058ded5 Mon Sep 17 00:00:00 2001 From: Paul Hachmang Date: Fri, 4 Aug 2023 11:09:11 +0200 Subject: [PATCH] Revert "Cleanup" This reverts commit 382755cd3452756d39136ecacc2f6c57bd70765f. --- .../ConfigurableProductPageGallery.tsx | 2 +- .../ConfigurableProductPageMeta.tsx | 7 +++++-- .../ConfigurableProductPagePrice.tsx | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageGallery.tsx b/packages/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageGallery.tsx index 27973d211f1..2b8927f04e8 100644 --- a/packages/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageGallery.tsx +++ b/packages/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageGallery.tsx @@ -1,5 +1,5 @@ import type { AddToCartItemSelector, ProductPageGallery } from '@graphcommerce/magento-product' -import type { ReactPlugin } from '@graphcommerce/next-config' +import type { IfConfig, ReactPlugin } from '@graphcommerce/next-config' import { useConfigurableOptionsSelection } from '../../hooks' export const component = 'ProductPageGallery' diff --git a/packages/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageMeta.tsx b/packages/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageMeta.tsx index 8c27988540c..7d1413e62ff 100644 --- a/packages/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageMeta.tsx +++ b/packages/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPageMeta.tsx @@ -1,6 +1,9 @@ import { mergeDeep } from '@graphcommerce/graphql' -import type { AddToCartItemSelector, ProductPageMeta } from '@graphcommerce/magento-product' -import { productLink } from '@graphcommerce/magento-product/hooks/useProductLink' +import { + productLink, + type AddToCartItemSelector, + type ProductPageMeta, +} from '@graphcommerce/magento-product' import type { IfConfig, ReactPlugin } from '@graphcommerce/next-config' import { useRouter } from 'next/router' import { useEffect } from 'react' diff --git a/packages/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePrice.tsx b/packages/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePrice.tsx index 4bfca90f059..95adda07dc2 100644 --- a/packages/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePrice.tsx +++ b/packages/magento-product-configurable/plugins/ConfigurableProductPage/ConfigurableProductPagePrice.tsx @@ -1,4 +1,4 @@ -import type { AddToCartItemSelector, ProductPagePrice } from '@graphcommerce/magento-product' +import { AddToCartItemSelector, type ProductPagePrice } from '@graphcommerce/magento-product' import type { ReactPlugin } from '@graphcommerce/next-config' import { useConfigurableSelectedVariant } from '../../hooks'