You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
597 B
24 lines
597 B
6 years ago
|
import React, { PureComponent } from 'react'
|
||
|
import PropTypes from 'prop-types'
|
||
|
import classnames from 'classnames'
|
||
|
|
||
|
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, withSymbol, symbol } = this.props
|
||
|
|
||
|
return (
|
||
|
<div className={classnames('hide-text-overflow', className)}>
|
||
|
{ string + (withSymbol ? ` ${symbol}` : '') }
|
||
|
</div>
|
||
|
)
|
||
|
}
|
||
|
}
|