aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js
diff options
context:
space:
mode:
authortrejgun <trejgun@gmail.com>2018-07-02 10:09:28 +0800
committerTrejGun <trejgun@gmail.com>2018-07-05 11:33:34 +0800
commitc94f639de55a867ebe8d3599d337a1f7341b1979 (patch)
treee6f4f6858d9d28f90e07249295976a598aff23b0 /ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js
parentb2e64f24ecbc9e309869e678254cf755ffe11b40 (diff)
downloadtangerine-wallet-browser-c94f639de55a867ebe8d3599d337a1f7341b1979.tar
tangerine-wallet-browser-c94f639de55a867ebe8d3599d337a1f7341b1979.tar.gz
tangerine-wallet-browser-c94f639de55a867ebe8d3599d337a1f7341b1979.tar.bz2
tangerine-wallet-browser-c94f639de55a867ebe8d3599d337a1f7341b1979.tar.lz
tangerine-wallet-browser-c94f639de55a867ebe8d3599d337a1f7341b1979.tar.xz
tangerine-wallet-browser-c94f639de55a867ebe8d3599d337a1f7341b1979.tar.zst
tangerine-wallet-browser-c94f639de55a867ebe8d3599d337a1f7341b1979.zip
convert contextType to static prop for refactored components
Diffstat (limited to 'ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js')
-rw-r--r--ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js11
1 files changed, 5 insertions, 6 deletions
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 196538c11..588384efb 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
@@ -24,7 +24,11 @@ export default class SendAmountRow extends Component {
updateSendAmount: PropTypes.func,
updateSendAmountError: PropTypes.func,
updateGas: PropTypes.func,
- }
+ };
+
+ static contextTypes = {
+ t: PropTypes.func,
+ };
validateAmount (amount) {
const {
@@ -102,8 +106,3 @@ export default class SendAmountRow extends Component {
}
}
-
-SendAmountRow.contextTypes = {
- t: PropTypes.func,
-}
-