aboutsummaryrefslogblamecommitdiffstats
path: root/packages/website/ts/components/flash_messages/transaction_submitted.tsx
blob: cef3e2b1eba13b0b3ac0ffe040165d012041d4ca (plain) (tree)
1
2
                            
                               


























                                                                                                                 
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() {
        if (_.isUndefined(this.props.etherScanLinkIfExists)) {
            return <div>Transaction submitted to the network</div>;
        } else {
            return (
                <div>
                    Transaction submitted to the network:{' '}
                    <a
                        style={{color: 'white'}}
                        href={`${this.props.etherScanLinkIfExists}`}
                        target="_blank"
                    >
                        Verify on Etherscan
                    </a>
                </div>
            );
        }
    }
}