kopia lustrzana https://github.com/longclawshop/longclaw
* CSS changes to order detail view Change class FULFILLED and UNFULFILLED, add padding. Now the warning is highlighted in color. * CSS changes to order detail view Changed class FULFILLED and UNFULFILLED, added an padding * Update style element for span FULFILLED Add const spanStyle * Update style span Changes in the design of <span> according to the norms of inline styles React * Update class to spanpull/66/head
rodzic
7b3a8e802f
commit
3285562967
|
@ -46,6 +46,22 @@ class OrderDetail extends Component {
|
|||
);
|
||||
}
|
||||
const order = this.state.order;
|
||||
const spanStyle = {
|
||||
padding: '8px',
|
||||
color: '#fff',
|
||||
backgroundColor: '#e9b04d',
|
||||
border: '1px solid #e9b04d',
|
||||
borderRadius: '3px',
|
||||
marginRight: '15px'
|
||||
};
|
||||
const spanStyleyes = {
|
||||
padding: '8px',
|
||||
color: '#fff',
|
||||
backgroundColor: '#189370',
|
||||
border: '1px solid #189370',
|
||||
borderRadius: '3px',
|
||||
marginRight: '15px'
|
||||
};
|
||||
let status = <span className="icon icon-warning">UNKNOWN </span>;
|
||||
let refundBtn = (
|
||||
<button
|
||||
|
@ -60,7 +76,7 @@ class OrderDetail extends Component {
|
|||
if (order.status == 1) {
|
||||
status = (
|
||||
<div>
|
||||
<span className="icon icon-warning">
|
||||
<span className="icon icon-warning" style={spanStyle}>
|
||||
UNFULFILLED
|
||||
</span>
|
||||
<button onClick={() => this.handleFulfill()} className="button yes">Fulfill</button>
|
||||
|
@ -71,7 +87,7 @@ class OrderDetail extends Component {
|
|||
else if (order.status == 2) {
|
||||
status = (
|
||||
<div>
|
||||
<span className="icon icon-warning">
|
||||
<span className="icon icon-warning" style={spanStyleyes}>
|
||||
FULFILLED
|
||||
</span>
|
||||
{refundBtn}
|
||||
|
|
Ładowanie…
Reference in New Issue