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.
22 lines
616 B
22 lines
616 B
7 years ago
|
import React, { Component } from 'react'
|
||
|
import PropTypes from 'prop-types'
|
||
6 years ago
|
import ConfirmTokenTransactionBase from '../confirm-token-transaction-base'
|
||
7 years ago
|
|
||
|
export default class ConfirmApprove extends Component {
|
||
|
static propTypes = {
|
||
6 years ago
|
tokenAmount: PropTypes.number,
|
||
6 years ago
|
tokenSymbol: PropTypes.string,
|
||
7 years ago
|
}
|
||
|
|
||
|
render () {
|
||
6 years ago
|
const { tokenAmount, tokenSymbol } = this.props
|
||
7 years ago
|
|
||
|
return (
|
||
6 years ago
|
<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}.`}
|
||
7 years ago
|
/>
|
||
|
)
|
||
|
}
|
||
|
}
|