如果两个条件为真,我想显示工具提示。
<LikelihoodIndicatorRefi likelihood={ props.props.approvalChance_NewLoan } >
{console.log(props.props.approvalChance_NewLoan === 'Less Likely' && props.props.approvalChance_Combined === 'Less Likely')}
{(props.props.approvalChance_NewLoan === 'Less Likely' && props.props.approvalChance_Combined === 'Less Likely' &&
<SmartTooltip wrapperCssClass="option-detail-tooltip" ctaLabel="How do I increase my chances?">
<h3>Less Likely</h3>
<p>
Want to improve your chnace of getting this loan? Try increasing the time to pay it back over.Or you could try asking for less money.
</p>
</SmartTooltip>)}
</LikelihoodIndicatorRefi>
<LikelihoodIndicatorRefi likelihood={ props.props.approvalChance_NewLoan } >
{console.log(props.props.approvalChance_NewLoan === 'Less Likely' && props.props.approvalChance_Combined === 'Less Likely')}
{(props.props.approvalChance_NewLoan === 'Less Likely' && props.props.approvalChance_Combined === 'Less Likely' &&
<SmartTooltip wrapperCssClass="option-detail-tooltip" ctaLabel="How do I increase my chances?">
<h3>Less Likely</h3>
<p>
Want to improve your chnace of getting this loan? Try increasing the time to pay it back over.Or you could try asking for less money.
</p>
</SmartTooltip>)}
</LikelihoodIndicatorRefi>
青春有我
墨色风雨
相关分类