aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/send-header/send-header.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-header/send-header.component.js
parentb2e64f24ecbc9e309869e678254cf755ffe11b40 (diff)
downloadtangerine-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-header/send-header.component.js')
-rw-r--r--ui/app/components/send_/send-header/send-header.component.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/app/components/send_/send-header/send-header.component.js b/ui/app/components/send_/send-header/send-header.component.js
index 5f6617fce..efc4bbf27 100644
--- a/ui/app/components/send_/send-header/send-header.component.js
+++ b/ui/app/components/send_/send-header/send-header.component.js
@@ -12,6 +12,10 @@ export default class SendHeader extends Component {
subtitleParams: PropTypes.array,
};
+ static contextTypes = {
+ t: PropTypes.func,
+ };
+
onClose () {
this.props.clearSend()
this.props.history.push(DEFAULT_ROUTE)
@@ -28,7 +32,3 @@ export default class SendHeader extends Component {
}
}
-
-SendHeader.contextTypes = {
- t: PropTypes.func,
-}