aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/send-content/send-from-row
diff options
context:
space:
mode:
authorDan J Miller <danjm.com@gmail.com>2018-07-14 19:53:48 +0800
committerGitHub <noreply@github.com>2018-07-14 19:53:48 +0800
commit4d105d9cca7bd866f6b971edd4ab28a28a6cf159 (patch)
tree1177fe84f902b51a86797d59ff8ef51bee265c57 /ui/app/components/send_/send-content/send-from-row
parent2f4698c130331db20a27576cb1c521c8ca5106e3 (diff)
parent94d1d846fb57932fd1e959f53dbf6444f0789e91 (diff)
downloadtangerine-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-from-row')
-rw-r--r--ui/app/components/send_/send-content/send-from-row/from-dropdown/from-dropdown.component.js8
-rw-r--r--ui/app/components/send_/send-content/send-from-row/send-from-row.component.js8
2 files changed, 8 insertions, 8 deletions
diff --git a/ui/app/components/send_/send-content/send-from-row/from-dropdown/from-dropdown.component.js b/ui/app/components/send_/send-content/send-from-row/from-dropdown/from-dropdown.component.js
index 418766cd9..4f43a9d61 100644
--- a/ui/app/components/send_/send-content/send-from-row/from-dropdown/from-dropdown.component.js
+++ b/ui/app/components/send_/send-content/send-from-row/from-dropdown/from-dropdown.component.js
@@ -14,6 +14,10 @@ export default class FromDropdown extends Component {
selectedAccount: PropTypes.object,
};
+ static contextTypes = {
+ t: PropTypes.func,
+ };
+
render () {
const {
accounts,
@@ -40,7 +44,3 @@ export default class FromDropdown extends Component {
}
}
-
-FromDropdown.contextTypes = {
- t: PropTypes.func,
-}
diff --git a/ui/app/components/send_/send-content/send-from-row/send-from-row.component.js b/ui/app/components/send_/send-content/send-from-row/send-from-row.component.js
index a580aef96..3e0e0de22 100644
--- a/ui/app/components/send_/send-content/send-from-row/send-from-row.component.js
+++ b/ui/app/components/send_/send-content/send-from-row/send-from-row.component.js
@@ -17,6 +17,10 @@ export default class SendFromRow extends Component {
setSendTokenBalance: PropTypes.func,
};
+ static contextTypes = {
+ t: PropTypes.func,
+ };
+
async handleFromChange (newFrom) {
const {
updateSendFrom,
@@ -57,7 +61,3 @@ export default class SendFromRow extends Component {
}
}
-
-SendFromRow.contextTypes = {
- t: PropTypes.func,
-}