A Metamask fork with Infura removed and default networks editable
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.
ciphermask/ui/app/pages/confirm-approve/confirm-approve.component.js

22 lines
616 B

import React, { Component } from 'react'
import PropTypes from 'prop-types'
import ConfirmTokenTransactionBase from '../confirm-token-transaction-base'
export default class ConfirmApprove extends Component {
static propTypes = {
tokenAmount: PropTypes.number,
6 years ago
tokenSymbol: PropTypes.string,
}
render () {
6 years ago
const { tokenAmount, tokenSymbol } = this.props
return (
<ConfirmTokenTransactionBase
tokenAmount={tokenAmount}
6 years ago
warning={`By approving this action, you grant permission for this contract to spend up to ${tokenAmount} of your ${tokenSymbol}.`}
/>
)
}
}