Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: display block height in tx detail #1470

Merged
merged 4 commits into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions apps/minifront/src/components/tx-details/tx-viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,15 @@ export const TxViewer = ({ txInfo }: { txInfo?: TransactionInfo }) => {
return (
<div>
<div className='text-xl font-bold'>Transaction View</div>
<div className='mb-8 break-all font-mono italic text-muted-foreground'>
{txInfo?.id && uint8ArrayToHex(txInfo.id.inner)}
<div className={'mb-8 flex items-center justify-between'}>
<div className=' break-all font-mono italic text-muted-foreground'>
{txInfo?.id && uint8ArrayToHex(txInfo.id.inner)}
</div>
<div
className={'rounded-lg border bg-black px-3 py-2 font-mono italic text-muted-foreground'}
>
block {txInfo?.height.toString()}
</div>
</div>

<div className='mx-auto mb-4 max-w-[70%]'>
Expand Down
Loading