diff options
author | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-09-05 03:56:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-05 03:56:56 +0800 |
commit | 50434513569ad44fbd01a7e124b5f499b4d6f2e2 (patch) | |
tree | 8cd6147073660343e8aa0cc05c4902134c7983b9 /ui/app/components/pages | |
parent | 86bb96aaaf106f1fa16fa93e749772524b5132b2 (diff) | |
parent | 879e10d44accbe9122e8b8514641b4fb2b986ad7 (diff) | |
download | tangerine-wallet-browser-50434513569ad44fbd01a7e124b5f499b4d6f2e2.tar.gz tangerine-wallet-browser-50434513569ad44fbd01a7e124b5f499b4d6f2e2.tar.zst tangerine-wallet-browser-50434513569ad44fbd01a7e124b5f499b4d6f2e2.zip |
Merge pull request #5167 from MetaMask/fix-watcAsset-images
Fix images for watched tokens
Diffstat (limited to 'ui/app/components/pages')
-rw-r--r-- | ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js | 3 | ||||
-rw-r--r-- | ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.container.js | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js b/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js index 3216d01c3..56cfbccc8 100644 --- a/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js +++ b/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js @@ -38,6 +38,7 @@ export default class ConfirmTransactionBase extends Component { isTxReprice: PropTypes.bool, methodData: PropTypes.object, nonce: PropTypes.string, + assetImage: PropTypes.string, sendTransaction: PropTypes.func, showCustomizeGasModal: PropTypes.func, showTransactionConfirmedModal: PropTypes.func, @@ -310,6 +311,7 @@ export default class ConfirmTransactionBase extends Component { contentComponent, onEdit, nonce, + assetImage, warning, } = this.props const { submitting, submitError } = this.state @@ -334,6 +336,7 @@ export default class ConfirmTransactionBase extends Component { dataComponent={this.renderData()} contentComponent={contentComponent} nonce={nonce} + assetImage={assetImage} identiconAddress={identiconAddress} errorMessage={errorMessage || submitError} errorKey={propsErrorKey || errorKey} diff --git a/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.container.js b/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.container.js index 0c0deff18..8f54c8040 100644 --- a/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.container.js +++ b/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.container.js @@ -52,8 +52,9 @@ const mapStateToProps = (state, props) => { accounts, selectedAddress, selectedAddressTxList, + assetImages, } = metamask - + const assetImage = assetImages[txParamsToAddress] const { balance } = accounts[selectedAddress] const { name: fromName } = identities[selectedAddress] const toAddress = propsToAddress || txParamsToAddress @@ -88,6 +89,7 @@ const mapStateToProps = (state, props) => { conversionRate, transactionStatus, nonce, + assetImage, } } |