Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
<title value="{coupon.label}">
</Portal>
<Portal name={portals.CART_ITEM_NAME_AFTER} props={context} />
<Portal name={portals.CART_ITEM_COUPON_CODE_BEFORE} props={context} />
<Portal name={portals.CART_ITEM_COUPON_CODE} props={context}>
<Code value={coupon.code} />
</Portal>
<Portal name={portals.CART_ITEM_COUPON_CODE_BEFORE} props={context} />
</Grid.Item>
<Grid.Item className={`${styles.content} ${styles.contentLast}`} grow={1} shrink={0}>
<Delete handleDelete={handleDelete} />
<CouponFreeShipping freeShipping={coupon.freeShipping} />
{ (coupon.savedPrice && coupon.savedPrice.value > 0) &&
<Fragment>
<Portal name={portals.CART_ITEM_PRICE_BEFORE} props={context} />
<Portal name={portals.CART_ITEM_PRICE} props={context}>
<CouponPrice currency={currency} savedPrice={coupon.savedPrice} />
</Portal>
<Portal name={portals.CART_ITEM_PRICE_AFTER} props={context} />
</Fragment>
}
</Grid.Item>
</Grid>
);
</title>
<title value="{coupon.label}">
</Portal>
<Portal name={portals.CART_ITEM_NAME_AFTER} props={context} />
<Portal name={portals.CART_ITEM_COUPON_CODE_BEFORE} props={context} />
<Portal name={portals.CART_ITEM_COUPON_CODE} props={context}>
<Code value={coupon.code} />
</Portal>
<Portal name={portals.CART_ITEM_COUPON_CODE_BEFORE} props={context} />
</Grid.Item>
<Grid.Item className={`${styles.content} ${styles.contentLast}`} grow={1} shrink={0}>
<Delete handleDelete={handleDelete} />
<CouponFreeShipping freeShipping={coupon.freeShipping} />
{(coupon.savedPrice && coupon.savedPrice.value > 0) &&
<Fragment>
<Portal name={portals.CART_ITEM_PRICE_BEFORE} props={context} />
<Portal name={portals.CART_ITEM_PRICE} props={context}>
<CouponPrice currency={currency} savedPrice={coupon.savedPrice} />
</Portal>
<Portal name={portals.CART_ITEM_PRICE_AFTER} props={context} />
</Fragment>
}
</Grid.Item>
</Grid>
);
</title>
<title value="{coupon.label}">
</Portal>
<Portal name={portals.CART_ITEM_NAME_AFTER} props={context} />
<Portal name={portals.CART_ITEM_COUPON_CODE_BEFORE} props={context} />
<Portal name={portals.CART_ITEM_COUPON_CODE} props={context}>
<Code value={coupon.code} />
</Portal>
<Portal name={portals.CART_ITEM_COUPON_CODE_BEFORE} props={context} />
</Grid.Item>
<Grid.Item className={`${styles.content} ${styles.contentLast}`} grow={1} shrink={0}>
<Delete handleDelete={handleDelete} />
{ (coupon.savedPrice && coupon.savedPrice.value > 0) &&
<Fragment>
<Portal name={portals.CART_ITEM_PRICE_BEFORE} props={context} />
<Portal name={portals.CART_ITEM_PRICE} props={context}>
<CouponPrice currency={currency} savedPrice={coupon.savedPrice} />
</Portal>
<Portal name={portals.CART_ITEM_PRICE_AFTER} props={context} />
</Fragment>
}
</Grid.Item>
</Grid>
);
</title>
return (
{hasStrikePrice && (
)}
);
};
return (
{hasStrikePrice && (
)}
);
};
const ProductPrice = ({ currency, defaultPrice, specialPrice }, context) => (
{!!specialPrice && (
)}
);