From 4aefafda9ca956dbc941622a88af63b52023cae8 Mon Sep 17 00:00:00 2001 From: Dawid Tarasiuk Date: Mon, 28 Sep 2020 14:47:52 +0200 Subject: [PATCH] Remove unused callback --- .../components/ProductUpdatePage/ProductUpdatePage.tsx | 1 - .../components/ProductVariantPage/ProductVariantPage.tsx | 4 +--- src/products/views/ProductCreate.tsx | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/products/components/ProductUpdatePage/ProductUpdatePage.tsx b/src/products/components/ProductUpdatePage/ProductUpdatePage.tsx index 0032769af..48d50cf6c 100644 --- a/src/products/components/ProductUpdatePage/ProductUpdatePage.tsx +++ b/src/products/components/ProductUpdatePage/ProductUpdatePage.tsx @@ -95,7 +95,6 @@ export interface ProductUpdatePageProps extends ListActions { onSubmitSkip?(nextAction?: ProductUpdatePageSubmitNextAction); onVariantAdd?(); onSetDefaultVariant(); - onWarehouseConfigure(); } export interface ProductUpdatePageSubmitData extends ProductUpdatePageFormData { diff --git a/src/products/components/ProductVariantPage/ProductVariantPage.tsx b/src/products/components/ProductVariantPage/ProductVariantPage.tsx index 111556daa..a2eecb180 100644 --- a/src/products/components/ProductVariantPage/ProductVariantPage.tsx +++ b/src/products/components/ProductVariantPage/ProductVariantPage.tsx @@ -77,7 +77,6 @@ interface ProductVariantPageProps { onImageSelect(id: string); onVariantClick(variantId: string); onSetDefaultVariant(); - onWarehouseConfigure(); } const ProductVariantPage: React.FC = ({ @@ -97,8 +96,7 @@ const ProductVariantPage: React.FC = ({ onSubmitSkip, onVariantClick, onVariantReorder, - onSetDefaultVariant, - onWarehouseConfigure + onSetDefaultVariant }) => { const attributeInput = React.useMemo( () => getAttributeInputFromVariant(variant), diff --git a/src/products/views/ProductCreate.tsx b/src/products/views/ProductCreate.tsx index 546dc2618..8bf072c74 100644 --- a/src/products/views/ProductCreate.tsx +++ b/src/products/views/ProductCreate.tsx @@ -8,7 +8,6 @@ import useCategorySearch from "@saleor/searches/useCategorySearch"; import useCollectionSearch from "@saleor/searches/useCollectionSearch"; import useProductTypeSearch from "@saleor/searches/useProductTypeSearch"; import { useTaxTypeList } from "@saleor/taxes/queries"; -import createDialogActionHandlers from "@saleor/utils/handlers/dialogActionHandlers"; import createMetadataCreateHandler from "@saleor/utils/handlers/metadataCreateHandler"; import { useMetadataUpdate,