Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const mapStateToProps = state => ({
isIos: isIos(state),
isSupported: hasCouponSupport(state),
});
const mapStateToProps = state => ({
isIos: isIos(state),
isLoading: isCurrentViewLoading(state),
isVisible: hasCouponSupport(state),
});
const mapStateToProps = (state) => {
const hasCartItems = getCartItems(state).length > 0;
return {
showCouponsHint: hasCartItems && !hasCouponSupport(state),
showTaxDisclaimer: hasCartItems && showTaxDisclaimer,
};
};
const mapStateToProps = (state) => {
const hasCartItems = getCartItems(state).length > 0;
return {
showCouponsHint: hasCartItems && !hasCouponSupport(state),
showTaxDisclaimer: hasCartItems && showTaxDisclaimer,
};
};
const mapStateToProps = state => ({
isIos: isIos(state),
isSupported: hasCouponSupport(state),
});