From 6b3f0ad04550060fd25b87b68c3f9bc1602f3226 Mon Sep 17 00:00:00 2001 From: jloup Date: Thu, 1 Mar 2018 10:05:11 +0100 Subject: Use for currency display. --- cmd/web/js/poloniex.jsx | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'cmd/web/js') diff --git a/cmd/web/js/poloniex.jsx b/cmd/web/js/poloniex.jsx index c0b68c7..482dbb6 100644 --- a/cmd/web/js/poloniex.jsx +++ b/cmd/web/js/poloniex.jsx @@ -1,5 +1,4 @@ import Api from './api.js'; -import classNames from 'classnames'; import React from 'react'; class PoloniexController extends React.Component { @@ -94,6 +93,15 @@ class PoloniexController extends React.Component { } } +class CurrencyLogo extends React.Component { + render = () => { + return {this.props.currency}; + } +} + class PoloniexBalance extends React.Component { constructor(props) { super(props); @@ -106,19 +114,19 @@ class PoloniexBalance extends React.Component { if (this.props.balanceValue !== null) { var balance = Object.keys(this.props.balance).map(function(currency) { - return
{this.props.balance[currency]}
; + return
+ {this.props.balance[currency]} +
; }.bind(this)); dashboard =
-
-
+
{balance} -
- Balance ({this.props.balanceCurrency}): {this.props.balanceValue} + Balance ({this.props.balanceCurrency}): {this.props.balanceValue}
; @@ -133,7 +141,7 @@ class PoloniexBalance extends React.Component { return (
-
+
Portfolio
-- cgit v1.2.3