2017-09-25 02:06:28 +00:00
|
|
|
import { BlockExplorerConfig } from 'config/data';
|
2017-08-31 04:00:31 +00:00
|
|
|
import React from 'react';
|
2017-12-18 23:29:26 +00:00
|
|
|
import { translateRaw } from 'translations';
|
2017-09-20 00:47:08 +00:00
|
|
|
|
2017-09-25 02:06:28 +00:00
|
|
|
export interface TransactionSucceededProps {
|
|
|
|
txHash: string;
|
|
|
|
blockExplorer: BlockExplorerConfig;
|
|
|
|
}
|
2017-08-31 04:00:31 +00:00
|
|
|
|
2017-12-18 23:29:26 +00:00
|
|
|
const TransactionSucceeded = ({ txHash, blockExplorer }: TransactionSucceededProps) => {
|
2017-08-31 04:00:31 +00:00
|
|
|
// const checkTxLink = `https://www.myetherwallet.com?txHash=${txHash}/#check-tx-status`;
|
2017-09-20 00:47:08 +00:00
|
|
|
const txHashLink = blockExplorer.tx(txHash);
|
2017-08-31 04:00:31 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div>
|
2017-12-18 23:29:26 +00:00
|
|
|
<p>{translateRaw('SUCCESS_3') + txHash}</p>
|
|
|
|
<a className="btn btn-xs btn-info string" href={txHashLink} target="_blank" rel="noopener">
|
2017-08-31 04:00:31 +00:00
|
|
|
Verify Transaction
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default TransactionSucceeded;
|