Moved over all pages/shared components and dependencies to react-shared

This commit is contained in:
Fabio Berger
2018-03-05 13:53:13 +01:00
parent 874e667849
commit 5a90fece80
69 changed files with 169 additions and 150 deletions

View File

@@ -1,6 +1,6 @@
import { colors } from '@0xproject/react-shared';
import * as React from 'react';
import { AlertTypes } from 'ts/types';
import { colors } from 'ts/utils/colors';
interface AlertProps {
type: AlertTypes;

View File

@@ -1,9 +1,9 @@
import { colors } from '@0xproject/react-shared';
import * as _ from 'lodash';
import * as React from 'react';
import * as CopyToClipboard from 'react-copy-to-clipboard';
import * as ReactDOM from 'react-dom';
import ReactTooltip = require('react-tooltip');
import { colors } from 'ts/utils/colors';
interface CopyIconProps {
data: string;

View File

@@ -1,8 +1,8 @@
import { colors } from '@0xproject/react-shared';
import * as _ from 'lodash';
import * as React from 'react';
import ReactTooltip = require('react-tooltip');
import { EtherscanLinkSuffixes } from 'ts/types';
import { colors } from 'ts/utils/colors';
import { utils } from 'ts/utils/utils';
interface EtherScanIconProps {

View File

@@ -1,5 +1,5 @@
import { colors } from '@0xproject/react-shared';
import * as React from 'react';
import { colors } from 'ts/utils/colors';
export interface InputLabelProps {
text: string | Element | React.ReactNode;

View File

@@ -1,7 +1,7 @@
import { colors } from '@0xproject/react-shared';
import * as _ from 'lodash';
import RaisedButton from 'material-ui/RaisedButton';
import * as React from 'react';
import { colors } from 'ts/utils/colors';
import { utils } from 'ts/utils/utils';
const COMPLETE_STATE_SHOW_LENGTH_MS = 2000;

View File

@@ -1,10 +1,10 @@
import { colors } from '@0xproject/react-shared';
import * as _ from 'lodash';
import * as React from 'react';
import ReactTooltip = require('react-tooltip');
import { EthereumAddress } from 'ts/components/ui/ethereum_address';
import { Identicon } from 'ts/components/ui/identicon';
import { EtherscanLinkSuffixes } from 'ts/types';
import { colors } from 'ts/utils/colors';
import { utils } from 'ts/utils/utils';
const IMAGE_DIMENSION = 100;

View File

@@ -1,5 +1,5 @@
import { colors } from '@0xproject/react-shared';
import * as React from 'react';
import { colors } from 'ts/utils/colors';
export interface RequiredLabelProps {
label: string | React.ReactNode;

View File

@@ -1,6 +1,6 @@
import { colors } from '@0xproject/react-shared';
import * as _ from 'lodash';
import * as React from 'react';
import { colors } from 'ts/utils/colors';
interface SwapIconProps {
swapTokensFn: () => void;