diff options
author | Dan J Miller <danjm.com@gmail.com> | 2018-07-14 19:53:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-14 19:53:48 +0800 |
commit | 4d105d9cca7bd866f6b971edd4ab28a28a6cf159 (patch) | |
tree | 1177fe84f902b51a86797d59ff8ef51bee265c57 /ui/app/components/send_/send-content/send-amount-row | |
parent | 2f4698c130331db20a27576cb1c521c8ca5106e3 (diff) | |
parent | 94d1d846fb57932fd1e959f53dbf6444f0789e91 (diff) | |
download | tangerine-wallet-browser-4d105d9cca7bd866f6b971edd4ab28a28a6cf159.tar.gz tangerine-wallet-browser-4d105d9cca7bd866f6b971edd4ab28a28a6cf159.tar.zst tangerine-wallet-browser-4d105d9cca7bd866f6b971edd4ab28a28a6cf159.zip |
Merge pull request #4702 from BitGuildPlatform/contextTypes
convert contextType to static prop for refactored components
Diffstat (limited to 'ui/app/components/send_/send-content/send-amount-row')
2 files changed, 9 insertions, 10 deletions
diff --git a/ui/app/components/send_/send-content/send-amount-row/amount-max-button/amount-max-button.component.js b/ui/app/components/send_/send-content/send-amount-row/amount-max-button/amount-max-button.component.js index bdf12b738..4d0d36ab4 100644 --- a/ui/app/components/send_/send-content/send-amount-row/amount-max-button/amount-max-button.component.js +++ b/ui/app/components/send_/send-content/send-amount-row/amount-max-button/amount-max-button.component.js @@ -13,6 +13,10 @@ export default class AmountMaxButton extends Component { tokenBalance: PropTypes.string, }; + static contextTypes = { + t: PropTypes.func, + }; + setMaxAmount () { const { balance, @@ -48,7 +52,3 @@ export default class AmountMaxButton extends Component { } } - -AmountMaxButton.contextTypes = { - t: PropTypes.func, -} diff --git a/ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js b/ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js index e13b95555..6e30d29a4 100644 --- a/ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js +++ b/ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js @@ -25,7 +25,11 @@ export default class SendAmountRow extends Component { updateSendAmount: PropTypes.func, updateSendAmountError: PropTypes.func, updateGas: PropTypes.func, - } + }; + + static contextTypes = { + t: PropTypes.func, + }; validateAmount (amount) { const { @@ -117,8 +121,3 @@ export default class SendAmountRow extends Component { } } - -SendAmountRow.contextTypes = { - t: PropTypes.func, -} - |