aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-12-01 16:22:09 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-12-01 16:22:09 +0800
commit074944247dfdcd91fb7acbe064ccf3c3d2139ddc (patch)
tree88c0936acb96d93a2bb54ddde6ba11d87f2a8eea /packages/instant/src/containers
parent593ed12d91e2e3c3f6d6feda2468b20a1fb364ac (diff)
downloaddexon-sol-tools-074944247dfdcd91fb7acbe064ccf3c3d2139ddc.tar
dexon-sol-tools-074944247dfdcd91fb7acbe064ccf3c3d2139ddc.tar.gz
dexon-sol-tools-074944247dfdcd91fb7acbe064ccf3c3d2139ddc.tar.bz2
dexon-sol-tools-074944247dfdcd91fb7acbe064ccf3c3d2139ddc.tar.lz
dexon-sol-tools-074944247dfdcd91fb7acbe064ccf3c3d2139ddc.tar.xz
dexon-sol-tools-074944247dfdcd91fb7acbe064ccf3c3d2139ddc.tar.zst
dexon-sol-tools-074944247dfdcd91fb7acbe064ccf3c3d2139ddc.zip
feat(instant): add token symbol to buy button text
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 ||