From 0148bc452703d294717a4b1e1565cee3e95166a7 Mon Sep 17 00:00:00 2001 From: dominik-zeglen Date: Thu, 3 Oct 2019 11:02:37 +0200 Subject: [PATCH] Fix build warnings --- .../ProductVariantCreatePrices.tsx | 4 ++-- .../ProductVariantCreateSummary.tsx | 2 +- .../ProductVariantCreateValues.tsx | 7 ++++--- .../components/ProductVariantCreateDialog/reducer.ts | 4 ++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/products/components/ProductVariantCreateDialog/ProductVariantCreatePrices.tsx b/src/products/components/ProductVariantCreateDialog/ProductVariantCreatePrices.tsx index 2b9148375..480fbfa6b 100644 --- a/src/products/components/ProductVariantCreateDialog/ProductVariantCreatePrices.tsx +++ b/src/products/components/ProductVariantCreateDialog/ProductVariantCreatePrices.tsx @@ -85,7 +85,7 @@ const ProductVariantCreatePrices: React.FC< return ( <> - + )} - + - + {attributes.map(attribute => ( - <> - + + {maybe(() => attribute.name, )}
@@ -57,10 +57,11 @@ const ProductVariantCreateValues: React.FC< name={`value:${value.slug}`} label={value.name} onChange={() => onValueClick(attribute.id, value.slug)} + key={value.slug} /> ))} - +
))} ); diff --git a/src/products/components/ProductVariantCreateDialog/reducer.ts b/src/products/components/ProductVariantCreateDialog/reducer.ts index 367a69320..12d9de6f5 100644 --- a/src/products/components/ProductVariantCreateDialog/reducer.ts +++ b/src/products/components/ProductVariantCreateDialog/reducer.ts @@ -1,9 +1,9 @@ import { add, remove, + removeAtIndex, toggle, - updateAtIndex, - removeAtIndex + updateAtIndex } from "@saleor/utils/lists"; import { createVariants } from "./createVariants"; import { initialForm, ProductVariantCreateFormData } from "./form";