Skip to content

Commit

Permalink
Adding link to transaction hash on Transaction Details page
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcsf committed Oct 6, 2023
1 parent ad8d633 commit 366febe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/transaction-details/transaction-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
Table,
Text
} from '@mantine/core';
import Link from 'next/link';

interface ItemProps {
id: number;
Expand Down Expand Up @@ -75,8 +76,9 @@ export default function TransactionDetails({ order: order }: any) {
minute: '2-digit',
})}
</Text>
{!order?.paymentTransactionHash && <Text size="sm" color="orange">Transaction hash: pending</Text>}
{order?.paymentTransactionHash && <Text size="sm">Transaction hash: {order?.paymentTransactionHash}</Text>}
<Link href={`https://etherscan.io/address/${order.paymentAddress}`} target="_blank" style={{ textDecoration: 'none', fontSize: '0.8rem' }}>
View transaction hash on BlockExplorer
</Link>
</Flex>
</Group>
</Group>
Expand Down

0 comments on commit 366febe

Please sign in to comment.