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
Alexander Tseung e16f5ab54d Fix tests
2018-07-17 13:38:15 -07:00

22 lines
616 B
JavaScript

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