Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const Layout = ({ coupon, currency, handleDelete }, context) => (
<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} /></title>
const Title = ({ value, handleRemove, toggleEditMode }, context) => (
<div data-test-id="{value}">
{value}
</div>
<div>
toggleEditMode(true)}>
</div>
const Layout = ({ coupon, currency, handleDelete }, context) => (
<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} /></title>
const Layout = ({ coupon, currency, handleDelete }, context) => (
<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}></title>