Remove react-shared package and fold it into website
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { EtherscanLinkSuffixes, utils as sharedUtils } from '@0x/react-shared';
|
||||
import { BigNumber, errorUtils } from '@0x/utils';
|
||||
import * as _ from 'lodash';
|
||||
import { utils } from 'ts/utils/utils';
|
||||
|
||||
import ActionAccountBalanceWallet from 'material-ui/svg-icons/action/account-balance-wallet';
|
||||
import * as React from 'react';
|
||||
@@ -35,6 +35,7 @@ import { colors } from 'ts/style/colors';
|
||||
import {
|
||||
AccountState,
|
||||
BlockchainErrs,
|
||||
EtherscanLinkSuffixes,
|
||||
ProviderType,
|
||||
ScreenWidths,
|
||||
Side,
|
||||
@@ -45,7 +46,6 @@ import {
|
||||
} from 'ts/types';
|
||||
import { analytics } from 'ts/utils/analytics';
|
||||
import { constants } from 'ts/utils/constants';
|
||||
import { utils } from 'ts/utils/utils';
|
||||
|
||||
export interface WalletProps {
|
||||
userAddress: string;
|
||||
@@ -324,7 +324,7 @@ export class Wallet extends React.Component<WalletProps, WalletState> {
|
||||
if (tokenState === undefined) {
|
||||
return null;
|
||||
}
|
||||
const tokenLink = sharedUtils.getEtherScanLinkIfExists(
|
||||
const tokenLink = utils.getEtherScanLinkIfExists(
|
||||
token.address,
|
||||
this.props.networkId,
|
||||
EtherscanLinkSuffixes.Address,
|
||||
|
@@ -1,4 +1,3 @@
|
||||
import { Styles } from '@0x/react-shared';
|
||||
import { BigNumber, logUtils } from '@0x/utils';
|
||||
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||
import * as _ from 'lodash';
|
||||
@@ -11,7 +10,7 @@ import { Container } from 'ts/components/ui/container';
|
||||
import { EthAmountInput } from 'ts/containers/inputs/eth_amount_input';
|
||||
import { Dispatcher } from 'ts/redux/dispatcher';
|
||||
import { colors } from 'ts/style/colors';
|
||||
import { BlockchainCallErrs, Side, Token } from 'ts/types';
|
||||
import { BlockchainCallErrs, Side, Styles, Token } from 'ts/types';
|
||||
import { analytics } from 'ts/utils/analytics';
|
||||
import { constants } from 'ts/utils/constants';
|
||||
import { errorReporter } from 'ts/utils/error_reporter';
|
||||
|
Reference in New Issue
Block a user