aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-25 02:50:05 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-25 02:50:05 +0800
commit09f0bf7f0062bba51380ae904bff96baddf5f0f2 (patch)
tree82142dba4b36e2fc03386b576ba7619dbffba06f /packages/instant/src/containers
parent33d8044f028b16e3e48ee963790aa840f3191803 (diff)
downloaddexon-sol-tools-09f0bf7f0062bba51380ae904bff96baddf5f0f2.tar
dexon-sol-tools-09f0bf7f0062bba51380ae904bff96baddf5f0f2.tar.gz
dexon-sol-tools-09f0bf7f0062bba51380ae904bff96baddf5f0f2.tar.bz2
dexon-sol-tools-09f0bf7f0062bba51380ae904bff96baddf5f0f2.tar.lz
dexon-sol-tools-09f0bf7f0062bba51380ae904bff96baddf5f0f2.tar.xz
dexon-sol-tools-09f0bf7f0062bba51380ae904bff96baddf5f0f2.tar.zst
dexon-sol-tools-09f0bf7f0062bba51380ae904bff96baddf5f0f2.zip
Get rid of react-shared as a dependency, write own etherscanUtil
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r--packages/instant/src/containers/selected_asset_view_transaction_button.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/instant/src/containers/selected_asset_view_transaction_button.tsx b/packages/instant/src/containers/selected_asset_view_transaction_button.tsx
index 44de16c4a..6f42b9f85 100644
--- a/packages/instant/src/containers/selected_asset_view_transaction_button.tsx
+++ b/packages/instant/src/containers/selected_asset_view_transaction_button.tsx
@@ -1,4 +1,3 @@
-import { EtherscanLinkSuffixes, utils } from '@0x/react-shared';
import * as _ from 'lodash';
import * as React from 'react';
import { connect } from 'react-redux';
@@ -7,6 +6,7 @@ import { State } from '../redux/reducer';
import { ViewTransactionButton } from '../components/view_transaction_button';
import { AsyncProcessState } from '../types';
+import { etherscanUtil } from '../util/etherscan';
export interface SelectedAssetViewTransactionButtonProps {}
@@ -17,10 +17,9 @@ interface ConnectedState {
const mapStateToProps = (state: State, _ownProps: {}): ConnectedState => ({
onClick: () => {
if (state.assetBuyer && state.buyOrderState.processState === AsyncProcessState.SUCCESS) {
- const etherscanUrl = utils.getEtherScanLinkIfExists(
+ const etherscanUrl = etherscanUtil.getEtherScanTxnAddressIfExists(
state.buyOrderState.txnHash,
state.assetBuyer.networkId,
- EtherscanLinkSuffixes.Tx,
);
if (etherscanUrl) {
window.open(etherscanUrl, '_blank');