import React from 'react'
import {connect} from 'react-redux'
import _ from 'lodash'
import sb from 'satoshi-bitcoin'

const Balance = ({balance}) => {
  return <span> Bitcoins: {_.isNumber(balance) ? sb.toBitcoin(balance) : '?'} </span>
}

export default connect(s => s)(Balance)

import React from 'react'
import {connect} from 'react-redux'
import _ from 'lodash'
import sb from 'satoshi-bitcoin'

const Balance = ({balance}) => {
  return <span> Bitcoins: {_.isNumber(balance) ? sb.toBitcoin(balance) : <i className='fa fa-spinner fa-spin' aria-hidden="true"></i>} </span>
}

export default connect(s => s)(Balance)

Add spinning icon to the balance button
Add spinning icon to the balance button
