|
|
@ -5,7 +5,7 @@ import { btc, blockExplorer } from 'utils' |
|
|
|
import styles from './SuccessfulSendCoins.scss' |
|
|
|
|
|
|
|
const SuccessfulSendCoins = ({ |
|
|
|
amount, addr, txid, hideModal, currentTicker, currency |
|
|
|
amount, addr, txid, hideModal, currentTicker, currency, isTestnet |
|
|
|
}) => { |
|
|
|
const calculatedAmount = currency === 'usd' ? btc.satoshisToUsd(amount, currentTicker.price_usd) : btc.satoshisToBtc(amount) |
|
|
|
|
|
|
@ -14,7 +14,7 @@ const SuccessfulSendCoins = ({ |
|
|
|
<AnimatedCheckmark /> |
|
|
|
<h1> |
|
|
|
You |
|
|
|
<span className={styles.link} onClick={() => blockExplorer.showTransaction(txid)}>sent</span> |
|
|
|
<span className={styles.link} onClick={() => blockExplorer.showTransaction(isTestnet, txid)}>sent</span> |
|
|
|
<span className={styles.amount}>{calculatedAmount} {currency.toUpperCase()}</span> |
|
|
|
to |
|
|
|
<span className={styles.addr}>{addr}</span> |
|
|
@ -35,7 +35,8 @@ SuccessfulSendCoins.propTypes = { |
|
|
|
txid: PropTypes.string.isRequired, |
|
|
|
hideModal: PropTypes.func.isRequired, |
|
|
|
currentTicker: PropTypes.object.isRequired, |
|
|
|
currency: PropTypes.string.isRequired |
|
|
|
currency: PropTypes.string.isRequired, |
|
|
|
isTestnet: PropTypes.bool.isRequired |
|
|
|
} |
|
|
|
|
|
|
|
export default SuccessfulSendCoins |
|
|
|