CSS changes to order detail view #38 (#64)

* 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 span
pull/66/head
Alex 2017-05-12 23:28:39 +10:00 zatwierdzone przez James Ramm
rodzic 7b3a8e802f
commit 3285562967
1 zmienionych plików z 18 dodań i 2 usunięć

Wyświetl plik

@ -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&nbsp;</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&nbsp;
</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&nbsp;
</span>
{refundBtn}