1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-11 20:27:12 +01:00
metamask-extension/ui/app/components/pages/confirm-approve/confirm-approve.component.js

22 lines
616 B
JavaScript
Raw Normal View History

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,
2018-07-15 08:36:42 +02:00
tokenSymbol: PropTypes.string,
}
render () {
2018-07-15 08:36:42 +02:00
const { tokenAmount, tokenSymbol } = this.props
return (
<ConfirmTokenTransactionBase
tokenAmount={tokenAmount}
2018-07-15 08:36:42 +02:00
warning={`By approving this action, you grant permission for this contract to spend up to ${tokenAmount} of your ${tokenSymbol}.`}
/>
)
}
}