feat(place-order): Sets crate alert to warning and sets color to red

This commit is contained in:
sovanna 2019-11-06 11:13:14 +09:00 committed by Sebastien Bourdeauducq
parent e025f66f3e
commit be59ae8032
2 changed files with 3 additions and 2 deletions

View File

@ -676,7 +676,7 @@ class Crate extends React.PureComponent {
{rules && rules.length > 0 && (
<div className="crate-info">
{rules.map((rule, index) => (
<p key={index} className="rule">
<p key={index} className="rule" style={{'color': rule.color ? rule.color : 'inherit'}}>
<img src={`/images${rule.icon}`} /> <i><strong>{rule.name}:</strong> {rule.message}</i>
</p>
))}

View File

@ -11,7 +11,8 @@ const shop_data = {
crateRules: {
maxSlot: {
type: 'crate',
icon: '/shop/icon-reminder.svg',
icon: '/shop/icon-warning.svg',
color: '#c75e5e',
name: 'Crate',
message: 'You have reach the maximum number of slots allowed for this crate. Consider removing cards.',
},