How to use the @shopgate/pwa-common-commerce/cart/selectors.hasCouponSupport 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-gmd / pages / Cart / components / CouponField / connector.js View on Github external
const mapStateToProps = state => ({
  isIos: isIos(state),
  isSupported: hasCouponSupport(state),
});
github shopgate / pwa / pages / Cart / components / CouponField / connector.js View on Github external
const mapStateToProps = state => ({
  isIos: isIos(state),
  isLoading: isCurrentViewLoading(state),
  isVisible: hasCouponSupport(state),
});
github shopgate / pwa / themes / theme-gmd / pages / Cart / components / Footer / connector.js View on Github external
const mapStateToProps = (state) => {
  const hasCartItems = getCartItems(state).length > 0;

  return {
    showCouponsHint: hasCartItems && !hasCouponSupport(state),
    showTaxDisclaimer: hasCartItems && showTaxDisclaimer,
  };
};
github shopgate / pwa / pages / Cart / components / Footer / connector.js View on Github external
const mapStateToProps = (state) => {
  const hasCartItems = getCartItems(state).length > 0;

  return {
    showCouponsHint: hasCartItems && !hasCouponSupport(state),
    showTaxDisclaimer: hasCartItems && showTaxDisclaimer,
  };
};
github shopgate / pwa / themes / theme-ios11 / pages / Cart / components / CouponField / connector.js View on Github external
const mapStateToProps = state => ({
  isIos: isIos(state),
  isSupported: hasCouponSupport(state),
});

@shopgate/pwa-common-commerce

Commerce library for the Shopgate Connect PWA.

Apache-2.0
Latest version published 1 month ago

Package Health Score

76 / 100
Full package analysis