Daniel Ternyak 0989424d73 Refactor Bity (#166)
* 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
2017-09-05 15:07:28 -05:00

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;