Files
protocol/packages/website/ts/components/flash_messages/transaction_submitted.tsx
Xianny 7423028fea Replace lodash with built-ins where possible to reduce bundle size (#1766)
* add tslint rule to disallow lodash.isUndefined

* add tslint rule to disallow lodash.isNull

* apply fixes
2019-04-10 09:36:32 -07:00

27 lines
870 B
TypeScript

import { colors } from '@0x/react-shared';
import * as _ from 'lodash';
import * as React from 'react';
interface TransactionSubmittedProps {
etherScanLinkIfExists?: string;
}
interface TransactionSubmittedState {}
export class TransactionSubmitted extends React.Component<TransactionSubmittedProps, TransactionSubmittedState> {
public render(): React.ReactNode {
if (this.props.etherScanLinkIfExists === undefined) {
return <div>Transaction submitted to the network</div>;
} else {
return (
<div>
Transaction submitted to the network:{' '}
<a style={{ color: colors.white }} href={`${this.props.etherScanLinkIfExists}`} target="_blank">
Verify on Etherscan
</a>
</div>
);
}
}
}