aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers
diff options
context:
space:
mode:
authorBrandon Millman <brandon@0xproject.com>2018-12-04 04:48:42 +0800
committerGitHub <noreply@github.com>2018-12-04 04:48:42 +0800
commitf076cdb8329693e9d7351ec88d2ac01ad42a2a3a (patch)
tree87677e557b2897422089b4a3e35fbcb6f00b89c2 /packages/instant/src/containers
parent3662ab25246a53128d85e8427ebe07518245b611 (diff)
parentc52d48d4db693a71b6eecf93dde5d7cbb64c51b6 (diff)
downloaddexon-sol-tools-f076cdb8329693e9d7351ec88d2ac01ad42a2a3a.tar
dexon-sol-tools-f076cdb8329693e9d7351ec88d2ac01ad42a2a3a.tar.gz
dexon-sol-tools-f076cdb8329693e9d7351ec88d2ac01ad42a2a3a.tar.bz2
dexon-sol-tools-f076cdb8329693e9d7351ec88d2ac01ad42a2a3a.tar.lz
dexon-sol-tools-f076cdb8329693e9d7351ec88d2ac01ad42a2a3a.tar.xz
dexon-sol-tools-f076cdb8329693e9d7351ec88d2ac01ad42a2a3a.tar.zst
dexon-sol-tools-f076cdb8329693e9d7351ec88d2ac01ad42a2a3a.zip
Merge pull request #1365 from 0xProject/fix/instant/token-selector
[instant] various polish items
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r--packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts b/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts
index 0d49edc57..80943a96f 100644
--- a/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts
+++ b/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts
@@ -9,7 +9,7 @@ import { Dispatch } from 'redux';
import { BuyOrderStateButtons } from '../components/buy_order_state_buttons';
import { Action, actions } from '../redux/actions';
import { State } from '../redux/reducer';
-import { AccountState, AffiliateInfo, OrderProcessState, ZeroExInstantError } from '../types';
+import { AccountState, AffiliateInfo, Asset, OrderProcessState, ZeroExInstantError } from '../types';
import { analytics } from '../util/analytics';
import { errorFlasher } from '../util/error_flasher';
import { etherscanUtil } from '../util/etherscan';
@@ -22,6 +22,7 @@ interface ConnectedState {
assetBuyer: AssetBuyer;
web3Wrapper: Web3Wrapper;
affiliateInfo?: AffiliateInfo;
+ selectedAsset?: Asset;
onViewTransaction: () => void;
}
@@ -41,6 +42,7 @@ const mapStateToProps = (state: State, _ownProps: SelectedAssetBuyOrderStateButt
const account = state.providerState.account;
const accountAddress = account.state === AccountState.Ready ? account.address : undefined;
const accountEthBalanceInWei = account.state === AccountState.Ready ? account.ethBalanceInWei : undefined;
+ const selectedAsset = state.selectedAsset;
return {
accountAddress,
accountEthBalanceInWei,
@@ -49,6 +51,7 @@ const mapStateToProps = (state: State, _ownProps: SelectedAssetBuyOrderStateButt
web3Wrapper,
buyQuote: state.latestBuyQuote,
affiliateInfo: state.affiliateInfo,
+ selectedAsset,
onViewTransaction: () => {
if (
state.buyOrderState.processState === OrderProcessState.Processing ||