diff options
author | trejgun <trejgun@gmail.com> | 2018-07-02 10:09:28 +0800 |
---|---|---|
committer | TrejGun <trejgun@gmail.com> | 2018-07-05 11:33:34 +0800 |
commit | c94f639de55a867ebe8d3599d337a1f7341b1979 (patch) | |
tree | e6f4f6858d9d28f90e07249295976a598aff23b0 /ui/app/components/send_/send-footer | |
parent | b2e64f24ecbc9e309869e678254cf755ffe11b40 (diff) | |
download | tangerine-wallet-browser-c94f639de55a867ebe8d3599d337a1f7341b1979.tar.gz 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-footer')
-rw-r--r-- | ui/app/components/send_/send-footer/send-footer.component.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/app/components/send_/send-footer/send-footer.component.js b/ui/app/components/send_/send-footer/send-footer.component.js index 6471ae1a3..ee0578791 100644 --- a/ui/app/components/send_/send-footer/send-footer.component.js +++ b/ui/app/components/send_/send-footer/send-footer.component.js @@ -27,6 +27,10 @@ export default class SendFooter extends Component { update: PropTypes.func, }; + static contextTypes = { + t: PropTypes.func, + }; + onCancel () { this.props.clearSend() this.props.history.push(DEFAULT_ROUTE) @@ -93,7 +97,3 @@ export default class SendFooter extends Component { } } - -SendFooter.contextTypes = { - t: PropTypes.func, -} |