How to use the @shopgate/engage/core.withForwardedRef function in @shopgate/engage

To help you get started, we’ve selected a few @shopgate/engage 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 / Product / components / AddToCartBar / components / AddMoreButton / index.jsx View on Github external
loading: PropTypes.bool.isRequired,
  visible: PropTypes.bool.isRequired,
  forwardedRef: PropTypes.shape(),
  onReset: PropTypes.func,
};

AddMoreButton.defaultProps = {
  onReset: () => {},
  forwardedRef: null,
};

AddMoreButton.contextTypes = {
  i18n: PropTypes.func,
};

export default withForwardedRef(AddMoreButton);
github shopgate / pwa / libraries / ui-material / NavDrawer / components / Item / index.jsx View on Github external
type="button"
        aria-hidden={ariaHidden}
        aria-label={ariaLabel}
        tabIndex="0"
      >
        <div>
          {Icon &amp;&amp; }
        </div>
        
        {Badge &amp;&amp; }
      
    );
  }
}

export default withForwardedRef(NavDrawerItem);
github shopgate / pwa / libraries / ui-shared / AddToCartButton / index.jsx View on Github external
<div style="{tickInlineStyle}">
          
        </div>
        <div style="{cartInlineStyle}">
          
        </div>
      
    );
  }
}

export default withForwardedRef(AddToCartButton);
github shopgate / pwa / themes / theme-ios11 / pages / Product / components / Characteristics / Characteristic / components / SheetItem / index.jsx View on Github external
/**
   * @returns {JSX}
   */
  render() {
    const { item, rightComponent: Right, selected } = this.props;

    return (
      <button type="button" role="option" aria-selected="{selected}" data-test-id="{item.label}">
        {item.label}
        {item.selectable &amp;&amp; }
      </button>
    );
  }
}

export default withForwardedRef(SheetItem);