diff options
Diffstat (limited to 'cmd/web/js/balance.jsx')
-rw-r--r-- | cmd/web/js/balance.jsx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/cmd/web/js/balance.jsx b/cmd/web/js/balance.jsx index d141aa8..515a7ed 100644 --- a/cmd/web/js/balance.jsx +++ b/cmd/web/js/balance.jsx | |||
@@ -1,14 +1,13 @@ | |||
1 | import React from 'react'; | 1 | import React from 'react'; |
2 | import moment from 'moment'; | 2 | import moment from 'moment'; |
3 | import classnames from 'classnames'; | ||
3 | 4 | ||
4 | class CurrencyLogo extends React.Component { | 5 | class CurrencyLogo extends React.Component { |
5 | render = () => { | 6 | render = () => { |
6 | return <div className="d-inline-block h-100"> | 7 | var className = classnames('cc', this.props.currency, 'currency-logo'); |
7 | <img className="currency-logo align-top" | 8 | return <i className={className} |
8 | src={'/public/icons/black/' + this.props.currency.toLowerCase() + '.svg' } | 9 | title={this.props.currency} |
9 | title={this.props.currency} | 10 | alt={this.props.currency}></i>; |
10 | alt={this.props.currency} /> | ||
11 | </div>; | ||
12 | } | 11 | } |
13 | } | 12 | } |
14 | 13 | ||
@@ -42,7 +41,7 @@ class CurrencyRate extends React.Component { | |||
42 | render = () => { | 41 | render = () => { |
43 | return <React.Fragment> | 42 | return <React.Fragment> |
44 | <div className="row text-center"> | 43 | <div className="row text-center"> |
45 | <div className="d-inline col-2 text-left"><CurrencyLogo currency={this.props.currency} /><span>{this.props.currency}</span></div> | 44 | <div className="d-inline col-2 text-left"><CurrencyLogo currency={this.props.currency} /> <span>{this.props.currency}</span></div> |
46 | <div className="d-inline col-2">{this.props.positionType}</div> | 45 | <div className="d-inline col-2">{this.props.positionType}</div> |
47 | <div className="d-inline col-2">{this.props.quantity}</div> | 46 | <div className="d-inline col-2">{this.props.quantity}</div> |
48 | <div className="d-inline col-2">{this.props.BTCValue}</div> | 47 | <div className="d-inline col-2">{this.props.BTCValue}</div> |