Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);
type="button"
aria-hidden={ariaHidden}
aria-label={ariaLabel}
tabIndex="0"
>
<div>
{Icon && }
</div>
{Badge && }
);
}
}
export default withForwardedRef(NavDrawerItem);
<div style="{tickInlineStyle}">
</div>
<div style="{cartInlineStyle}">
</div>
);
}
}
export default withForwardedRef(AddToCartButton);
/**
* @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 && }
</button>
);
}
}
export default withForwardedRef(SheetItem);