fix(issue#16): Shows warning only when needed

This commit is contained in:
sovanna 2020-04-21 11:18:46 +09:00
parent 2adb262fb0
commit 41a19b9910

View File

@ -680,7 +680,7 @@ class ProductCartItem extends React.PureComponent {
<img className="alert-warning" src={warning ? `/images${warning.icon}` : null} /> <img className="alert-warning" src={warning ? `/images${warning.icon}` : null} />
)} )}
{warning && ( {warning && model.showWarning && (
<div className={`k-popup-warning ${shouldTooltipWarningClassInverted ? 'inverted': ''}`}> <div className={`k-popup-warning ${shouldTooltipWarningClassInverted ? 'inverted': ''}`}>
<p className="rule warning"> <p className="rule warning">
<i>{warning.message}</i> <i>{warning.message}</i>