2017-08-30 21:00:31 -07:00
|
|
|
import React from 'react';
|
2017-12-18 18:29:26 -05:00
|
|
|
import { translateRaw } from 'translations';
|
2018-02-12 15:43:07 -05:00
|
|
|
import { BlockExplorerConfig } from 'types/network';
|
2017-09-19 20:47:08 -04:00
|
|
|
|
2017-09-24 19:06:28 -07:00
|
|
|
export interface TransactionSucceededProps {
|
|
|
|
txHash: string;
|
|
|
|
blockExplorer: BlockExplorerConfig;
|
|
|
|
}
|
2017-08-30 21:00:31 -07:00
|
|
|
|
2017-12-18 18:29:26 -05:00
|
|
|
const TransactionSucceeded = ({ txHash, blockExplorer }: TransactionSucceededProps) => {
|
2018-01-20 14:06:28 -06:00
|
|
|
const txHashLink = blockExplorer.txUrl(txHash);
|
2017-08-30 21:00:31 -07:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div>
|
2017-12-18 18:29:26 -05:00
|
|
|
<p>{translateRaw('SUCCESS_3') + txHash}</p>
|
2018-01-10 00:17:52 -05:00
|
|
|
<a
|
|
|
|
className="btn btn-xs btn-info string"
|
|
|
|
href={txHashLink}
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
>
|
2017-08-30 21:00:31 -07:00
|
|
|
Verify Transaction
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default TransactionSucceeded;
|