How to use the @shopgate/pwa-common-commerce/cart/constants/Portals.CART_ITEM_NAME function in @shopgate/pwa-common-commerce

To help you get started, we’ve selected a few @shopgate/pwa-common-commerce examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shopgate / pwa / themes / theme-ios11 / pages / Cart / components / Item / components / Coupon / components / Layout / index.jsx View on Github external
const Layout = ({ coupon, currency, handleDelete }, context) => (
  
    
      
      
        
      
      
    
    
      
      
        <title value="{coupon.label}">
      &lt;/Portal&gt;
      &lt;Portal name={portals.CART_ITEM_NAME_AFTER} props={context} /&gt;

      &lt;Portal name={portals.CART_ITEM_COUPON_CODE_BEFORE} props={context} /&gt;
      &lt;Portal name={portals.CART_ITEM_COUPON_CODE} props={context}&gt;
        &lt;Code value={coupon.code} /&gt;
      &lt;/Portal&gt;
      &lt;Portal name={portals.CART_ITEM_COUPON_CODE_BEFORE} props={context} /&gt;
    &lt;/Grid.Item&gt;
    &lt;Grid.Item className={`${styles.content} ${styles.contentLast}`} grow={1} shrink={0}&gt;
      &lt;Delete handleDelete={handleDelete} /&gt;
      &lt;CouponFreeShipping freeShipping={coupon.freeShipping} /&gt;
      { (coupon.savedPrice &amp;&amp; coupon.savedPrice.value &gt; 0) &amp;&amp;
        &lt;Fragment&gt;
          &lt;Portal name={portals.CART_ITEM_PRICE_BEFORE} props={context} /&gt;</title>
github shopgate / pwa / pages / Cart / components / Item / components / Product / components / Layout / components / Title / index.jsx View on Github external
const Title = ({ value, handleRemove, toggleEditMode }, context) =&gt; (
  
    
      
      
        <div data-test-id="{value}">
          {value}
        </div>
      
      
    
    
      <div>
        
          
            
          
           toggleEditMode(true)}&gt;
            
          
        </div>
github shopgate / pwa / themes / theme-gmd / pages / Cart / components / Item / components / Coupon / components / Layout / index.jsx View on Github external
const Layout = ({ coupon, currency, handleDelete }, context) =&gt; (
  
    
      
      
        
      
      
    
    
      
      
        <title value="{coupon.label}">
      &lt;/Portal&gt;
      &lt;Portal name={portals.CART_ITEM_NAME_AFTER} props={context} /&gt;

      &lt;Portal name={portals.CART_ITEM_COUPON_CODE_BEFORE} props={context} /&gt;
      &lt;Portal name={portals.CART_ITEM_COUPON_CODE} props={context}&gt;
        &lt;Code value={coupon.code} /&gt;
      &lt;/Portal&gt;
      &lt;Portal name={portals.CART_ITEM_COUPON_CODE_BEFORE} props={context} /&gt;
    &lt;/Grid.Item&gt;
    &lt;Grid.Item className={`${styles.content} ${styles.contentLast}`} grow={1} shrink={0}&gt;
      &lt;Delete handleDelete={handleDelete} /&gt;
      &lt;CouponFreeShipping freeShipping={coupon.freeShipping} /&gt;
      {(coupon.savedPrice &amp;&amp; coupon.savedPrice.value &gt; 0) &amp;&amp;
        &lt;Fragment&gt;
          &lt;Portal name={portals.CART_ITEM_PRICE_BEFORE} props={context} /&gt;</title>
github shopgate / pwa / pages / Cart / components / Item / components / Coupon / components / Layout / index.jsx View on Github external
const Layout = ({ coupon, currency, handleDelete }, context) =&gt; (
  
    
      
      
        
      
      
    
    
      
      
        <title value="{coupon.label}">
      &lt;/Portal&gt;
      &lt;Portal name={portals.CART_ITEM_NAME_AFTER} props={context} /&gt;

      &lt;Portal name={portals.CART_ITEM_COUPON_CODE_BEFORE} props={context} /&gt;
      &lt;Portal name={portals.CART_ITEM_COUPON_CODE} props={context}&gt;
        &lt;Code value={coupon.code} /&gt;
      &lt;/Portal&gt;
      &lt;Portal name={portals.CART_ITEM_COUPON_CODE_BEFORE} props={context} /&gt;
    &lt;/Grid.Item&gt;
    &lt;Grid.Item className={`${styles.content} ${styles.contentLast}`} grow={1} shrink={0}&gt;
      &lt;Delete handleDelete={handleDelete} /&gt;
      { (coupon.savedPrice &amp;&amp; coupon.savedPrice.value &gt; 0) &amp;&amp;
        &lt;Fragment&gt;
          &lt;Portal name={portals.CART_ITEM_PRICE_BEFORE} props={context} /&gt;
          &lt;Portal name={portals.CART_ITEM_PRICE} props={context}&gt;</title>

@shopgate/pwa-common-commerce

Commerce library for the Shopgate Connect PWA.

Apache-2.0
Latest version published 14 hours ago

Package Health Score

73 / 100
Full package analysis