2017-08-31 04:00:31 +00:00
|
|
|
import React from 'react';
|
2017-12-18 23:29:26 +00:00
|
|
|
import { translateRaw } from 'translations';
|
2018-02-12 20:43:07 +00:00
|
|
|
import { BlockExplorerConfig } from 'types/network';
|
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) => {
|
2018-01-20 20:06:28 +00:00
|
|
|
const txHashLink = blockExplorer.txUrl(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>
|
2018-01-10 05:17:52 +00:00
|
|
|
<a
|
|
|
|
className="btn btn-xs btn-info string"
|
|
|
|
href={txHashLink}
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
>
|
2017-08-31 04:00:31 +00:00
|
|
|
Verify Transaction
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default TransactionSucceeded;
|