import React, { Component } from 'react' import PropTypes from 'prop-types' import { FaQrcode } from 'react-icons/lib/fa' import Isvg from 'react-inlinesvg' import { btc } from 'utils' import skinnyBitcoinIcon from 'icons/skinny_bitcoin.svg' import ReceiveModal from './ReceiveModal' import styles from './Wallet.scss' class Wallet extends Component { constructor(props) { super(props) this.state = { modalOpen: false, qrCodeType: 1 } } render() { const { balance, address, info, newAddress } = this.props const { modalOpen, qrCodeType } = this.state const changeQrCode = () => { const qrCodeNum = this.state.qrCodeType === 1 ? 2 : 1 this.setState({ qrCodeType: qrCodeNum }) } return (