Skip to content

Commit

Permalink
Display link to proposer in consensus block details
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Jan 18, 2025
1 parent 4e14726 commit 234a3e0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/pages/ConsensusBlockDetailPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { SubPageCard } from '../../components/SubPageCard'
import { AdaptiveTrimmer } from '../../components/AdaptiveTrimmer/AdaptiveTrimmer'
import { DashboardLink } from '../ParatimeDashboardPage/DashboardLink'
import { eventsContainerId } from './ConsensusBlockEventsCard'
import { ConsensusAccountLink } from '../../components/Account/ConsensusAccountLink'

export type BlockDetailConsensusBlock = Block & {
markAsNew?: boolean
Expand Down Expand Up @@ -132,6 +133,14 @@ export const ConsensusBlockDetailView: FC<{
</>
)}

{!!block.proposer?.entity_address && (
<>
<dt>{t('common.proposer')}</dt>
<dd>
<ConsensusAccountLink address={block.proposer.entity_address} network={block.network} />
</dd>
</>
)}
<dt>{t('common.timestamp')}</dt>
<dd>{formattedTime}</dd>

Expand Down

0 comments on commit 234a3e0

Please sign in to comment.