aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/flash_messages/asset_send_completed.tsx
diff options
context:
space:
mode:
authorHsuan Lee <hsuan@cobinhood.com>2019-01-19 18:42:04 +0800
committerHsuan Lee <hsuan@cobinhood.com>2019-01-19 18:42:04 +0800
commit7ae38906926dc09bc10670c361af0d2bf0050426 (patch)
tree5fb10ae366b987db09e4ddb4bc3ba0f75404ad08 /packages/website/ts/components/flash_messages/asset_send_completed.tsx
parentb5fd3c72a08aaa6957917d74c333387a16edf66b (diff)
downloaddexon-sol-tools-7ae38906926dc09bc10670c361af0d2bf0050426.tar
dexon-sol-tools-7ae38906926dc09bc10670c361af0d2bf0050426.tar.gz
dexon-sol-tools-7ae38906926dc09bc10670c361af0d2bf0050426.tar.bz2
dexon-sol-tools-7ae38906926dc09bc10670c361af0d2bf0050426.tar.lz
dexon-sol-tools-7ae38906926dc09bc10670c361af0d2bf0050426.tar.xz
dexon-sol-tools-7ae38906926dc09bc10670c361af0d2bf0050426.tar.zst
dexon-sol-tools-7ae38906926dc09bc10670c361af0d2bf0050426.zip
Update dependency packages
Diffstat (limited to 'packages/website/ts/components/flash_messages/asset_send_completed.tsx')
-rw-r--r--packages/website/ts/components/flash_messages/asset_send_completed.tsx34
1 files changed, 0 insertions, 34 deletions
diff --git a/packages/website/ts/components/flash_messages/asset_send_completed.tsx b/packages/website/ts/components/flash_messages/asset_send_completed.tsx
deleted file mode 100644
index b895126dc..000000000
--- a/packages/website/ts/components/flash_messages/asset_send_completed.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import { colors } from '@0x/react-shared';
-import { BigNumber } from '@0x/utils';
-import { Web3Wrapper } from '@0x/web3-wrapper';
-import * as _ from 'lodash';
-import * as React from 'react';
-import { utils } from 'ts/utils/utils';
-
-interface AssetSendCompletedProps {
- etherScanLinkIfExists?: string;
- toAddress: string;
- amountInBaseUnits: BigNumber;
- decimals: number;
- symbol: string;
-}
-
-interface AssetSendCompletedState {}
-
-export class AssetSendCompleted extends React.Component<AssetSendCompletedProps, AssetSendCompletedState> {
- public render(): React.ReactNode {
- const etherScanLink = !_.isUndefined(this.props.etherScanLinkIfExists) && (
- <a style={{ color: colors.white }} href={`${this.props.etherScanLinkIfExists}`} target="_blank">
- Verify on Etherscan
- </a>
- );
- const amountInUnits = Web3Wrapper.toUnitAmount(this.props.amountInBaseUnits, this.props.decimals);
- const truncatedAddress = utils.getAddressBeginAndEnd(this.props.toAddress);
- return (
- <div>
- {`Sent ${amountInUnits} ${this.props.symbol} to ${truncatedAddress}: `}
- {etherScanLink}
- </div>
- );
- }
-}