@ -5,6 +5,7 @@ import Identicon from '../../../components/ui/identicon'
import {
import {
addressSummary ,
addressSummary ,
} from '../../../helpers/utils/util'
} from '../../../helpers/utils/util'
import { formatCurrency } from '../../../helpers/utils/confirm-tx.util'
export default class ConfirmApproveContent extends Component {
export default class ConfirmApproveContent extends Component {
static contextTypes = {
static contextTypes = {
@ -26,6 +27,7 @@ export default class ConfirmApproveContent extends Component {
tokenBalance : PropTypes . string ,
tokenBalance : PropTypes . string ,
data : PropTypes . string ,
data : PropTypes . string ,
toAddress : PropTypes . string ,
toAddress : PropTypes . string ,
currentCurrency : PropTypes . string ,
fiatTransactionTotal : PropTypes . string ,
fiatTransactionTotal : PropTypes . string ,
ethTransactionTotal : PropTypes . string ,
ethTransactionTotal : PropTypes . string ,
}
}
@ -68,6 +70,7 @@ export default class ConfirmApproveContent extends Component {
renderTransactionDetailsContent ( ) {
renderTransactionDetailsContent ( ) {
const { t } = this . context
const { t } = this . context
const {
const {
currentCurrency ,
ethTransactionTotal ,
ethTransactionTotal ,
fiatTransactionTotal ,
fiatTransactionTotal ,
} = this . props
} = this . props
@ -78,10 +81,10 @@ export default class ConfirmApproveContent extends Component {
< / d i v >
< / d i v >
< div className = "confirm-approve-content__transaction-details-content__fee" >
< div className = "confirm-approve-content__transaction-details-content__fee" >
< div className = "confirm-approve-content__transaction-details-content__primary-fee" >
< div className = "confirm-approve-content__transaction-details-content__primary-fee" >
{ fiatTransactionTotal }
{ formatCurrency ( f iatTransactionTotal , currentCurrency ) }
< / d i v >
< / d i v >
< div className = "confirm-approve-content__transaction-details-content__secondary-fee" >
< div className = "confirm-approve-content__transaction-details-content__secondary-fee" >
{ ethTransactionTotal }
{ ` ${ ethTransactionTotal } ETH ` }
< / d i v >
< / d i v >
< / d i v >
< / d i v >
< / d i v >
< / d i v >