aboutsummaryrefslogblamecommitdiffstats
path: root/ui/app/components/token-balance/token-balance.component.js
blob: af1a32578dfc84d943fa8e6aac3f6d244203daa4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

                                            
                                                 










                                                         
                                                    

            




                             


     
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import CurrencyDisplay from '../currency-display'

export default class TokenBalance extends PureComponent {
  static propTypes = {
    string: PropTypes.string,
    symbol: PropTypes.string,
    error: PropTypes.string,
    className: PropTypes.string,
    withSymbol: PropTypes.bool,
  }

  render () {
    const { className, string, symbol } = this.props

    return (
      <CurrencyDisplay
        className={className}
        displayValue={string}
        suffix={symbol}
      />
    )
  }
}