From d5b8f0ffbbde5fb8d41c3abb4b0969b962746b52 Mon Sep 17 00:00:00 2001 From: jloup Date: Sun, 13 May 2018 23:04:56 +0200 Subject: JS factorization + clean. --- cmd/web/js/balance.jsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'cmd/web/js/balance.jsx') 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 @@ import React from 'react'; import moment from 'moment'; +import classnames from 'classnames'; class CurrencyLogo extends React.Component { render = () => { - return
- {this.props.currency} -
; + var className = classnames('cc', this.props.currency, 'currency-logo'); + return ; } } @@ -42,7 +41,7 @@ class CurrencyRate extends React.Component { render = () => { return
-
{this.props.currency}
+
{this.props.currency}
{this.props.positionType}
{this.props.quantity}
{this.props.BTCValue}
-- cgit v1.2.3