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} /></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} /></title>
const Layout = (props, context) => (
<div>
</div>
<title value="{props.product.name}">
<Grid className={styles.info}>
<Grid.Item grow={1}></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} /></title>