diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-07-15 14:36:42 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-07-18 04:38:15 +0800 |
commit | e16f5ab54d1e69e59fe4689fde3fa34e61c88974 (patch) | |
tree | 1d453ccf911aa8e6deeb590ac54dde2b08c4042e /ui/app/components/pages | |
parent | d19c42fcaeea933793ed459ab5248b42811a0498 (diff) | |
download | tangerine-wallet-browser-e16f5ab54d1e69e59fe4689fde3fa34e61c88974.tar tangerine-wallet-browser-e16f5ab54d1e69e59fe4689fde3fa34e61c88974.tar.gz tangerine-wallet-browser-e16f5ab54d1e69e59fe4689fde3fa34e61c88974.tar.bz2 tangerine-wallet-browser-e16f5ab54d1e69e59fe4689fde3fa34e61c88974.tar.lz tangerine-wallet-browser-e16f5ab54d1e69e59fe4689fde3fa34e61c88974.tar.xz tangerine-wallet-browser-e16f5ab54d1e69e59fe4689fde3fa34e61c88974.tar.zst tangerine-wallet-browser-e16f5ab54d1e69e59fe4689fde3fa34e61c88974.zip |
Fix tests
Diffstat (limited to 'ui/app/components/pages')
-rw-r--r-- | ui/app/components/pages/confirm-approve/confirm-approve.component.js | 4 | ||||
-rw-r--r-- | ui/app/components/pages/confirm-approve/confirm-approve.container.js | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ui/app/components/pages/confirm-approve/confirm-approve.component.js b/ui/app/components/pages/confirm-approve/confirm-approve.component.js index 10f06e565..b71eaa1d4 100644 --- a/ui/app/components/pages/confirm-approve/confirm-approve.component.js +++ b/ui/app/components/pages/confirm-approve/confirm-approve.component.js @@ -5,14 +5,16 @@ import ConfirmTokenTransactionBase from '../confirm-token-transaction-base' export default class ConfirmApprove extends Component { static propTypes = { tokenAmount: PropTypes.number, + tokenSymbol: PropTypes.string, } render () { - const { tokenAmount } = this.props + 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}.`} /> ) } diff --git a/ui/app/components/pages/confirm-approve/confirm-approve.container.js b/ui/app/components/pages/confirm-approve/confirm-approve.container.js index 249175e17..4ef9f4ced 100644 --- a/ui/app/components/pages/confirm-approve/confirm-approve.container.js +++ b/ui/app/components/pages/confirm-approve/confirm-approve.container.js @@ -3,10 +3,12 @@ import ConfirmApprove from './confirm-approve.component' import { approveTokenAmountAndToAddressSelector } from '../../../selectors/confirm-transaction' const mapStateToProps = state => { + const { confirmTransaction: { tokenProps: { tokenSymbol } = {} } } = state const { tokenAmount } = approveTokenAmountAndToAddressSelector(state) return { tokenAmount, + tokenSymbol, } } |