Remove react-shared package and fold it into website

This commit is contained in:
fabioberger
2019-07-25 11:18:42 +02:00
parent cc7dec7a99
commit ec7f9d8a63
122 changed files with 322 additions and 1458 deletions

View File

@@ -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,

View File

@@ -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';