Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Comment button that is disabled anyway

dominik-zeglen97b8196ba466
diff --git a/saleor/static/dashboard-next/products/components/ProductVariantImages/ProductVariantImages.tsx b/saleor/static/dashboard-next/products/components/ProductVariantImages/ProductVariantImages.tsx
index fc13d79397..58933f6504 100644
--- a/saleor/static/dashboard-next/products/components/ProductVariantImages/ProductVariantImages.tsx
+++ b/saleor/static/dashboard-next/products/components/ProductVariantImages/ProductVariantImages.tsx
@@ -50,22 +50,23 @@ const decorate = withStyles(theme => ({
}));
export const ProductVariantImages = decorate<ProductVariantImagesProps>(
- ({ classes, images, placeholderImage, disabled, onImageAdd }) => (
+ ({ classes, images }) => (
<Card className={classes.card}>
<CardTitle
title={i18n.t("Images")}
- toolbar={
- <Button
- color="secondary"
- variant="flat"
- // FIXME: enable this button when API will be able to pin images
- // to variants
- disabled={true || disabled}
- onClick={onImageAdd}
- >
- {i18n.t("Choose photos")}
- </Button>
- }
+ // FIXME: enable this button when API will be able to pin images
+ // to variants
+
+ // toolbar={
+ // <Button
+ // color="secondary"
+ // variant="flat"
+ // disabled={disabled}
+ // onClick={onImageAdd}
+ // >
+ // {i18n.t("Choose photos")}
+ // </Button>
+ // }
/>
<CardContent>
<div className={classes.root}>