mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-03-02 19:50:38 +00:00
* Refactor bity config * fix bug in refactor that would cause destinationKind amount to not load * use function instead of string replace for building blockexplorers per PR comment
30 lines
706 B
JavaScript
30 lines
706 B
JavaScript
import React from 'react';
|
|
import { ETHTxExplorer } from 'config/data';
|
|
import translate from 'translations';
|
|
export type TransactionSucceededProps = {
|
|
txHash: string
|
|
};
|
|
|
|
const TransactionSucceeded = ({ txHash }: TransactionSucceededProps) => {
|
|
// const checkTxLink = `https://www.myetherwallet.com?txHash=${txHash}/#check-tx-status`;
|
|
const txHashLink = ETHTxExplorer(txHash);
|
|
|
|
return (
|
|
<div>
|
|
<p>
|
|
{translate('SUCCESS_3', true) + txHash}
|
|
</p>
|
|
<a
|
|
className="btn btn-xs btn-info string"
|
|
href={txHashLink}
|
|
target="_blank"
|
|
rel="noopener"
|
|
>
|
|
Verify Transaction
|
|
</a>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default TransactionSucceeded;
|