otterscan/src/components/TransactionLink.tsx

18 lines
408 B
TypeScript
Raw Normal View History

2021-07-01 18:21:40 +00:00
import React from "react";
import { NavLink } from "react-router-dom";
type TransactionLinkProps = {
txHash: string;
};
const TransactionLink: React.FC<TransactionLinkProps> = ({ txHash }) => (
<NavLink
className="text-link-blue hover:text-link-blue-hover font-hash"
to={`/tx/${txHash}`}
>
<p className="truncate">{txHash}</p>
</NavLink>
);
export default React.memo(TransactionLink);