forked from M-Labs/web2019
feat(place-order): Sets crate alert to warning and sets color to red
This commit is contained in:
parent
e025f66f3e
commit
be59ae8032
@ -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>
|
||||
))}
|
||||
|
@ -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.',
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user