Skip to content

Commit

Permalink
chore: show created by in chain
Browse files Browse the repository at this point in the history
  • Loading branch information
danisharora099 committed Nov 5, 2024
1 parent cdd1102 commit cc56298
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions examples/buddybook/src/components/Chain/View/ChainList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,20 @@ const ChainList: React.FC<ChainListProps> = ({ chainsData, onChainUpdate, isLoad
</CardHeader>
<CardContent>
<p>{block.description}</p>
<p className="text-sm text-muted-foreground mt-2">
Created at: {new Date(block.timestamp).toLocaleString()}
</p>
<p className="text-sm text-muted-foreground">
Total Signatures: {totalSignatures}
</p>
<p className="text-sm text-muted-foreground">
Block UUID: {block.blockUUID}
</p>
<div className="flex flex-col space-y-2 mt-2">
<p className="text-sm text-muted-foreground">
Created by: <SignerName address={block.signatures[0].address} />
</p>
<p className="text-sm text-muted-foreground">
Created at: {new Date(block.timestamp).toLocaleString()}
</p>
<p className="text-sm text-muted-foreground">
Total Signatures: {totalSignatures}
</p>
<p className="text-sm text-muted-foreground">
Block UUID: {block.blockUUID}
</p>
</div>
<div className="mt-2 space-x-2">
<SignChain
block={block}
Expand Down

0 comments on commit cc56298

Please sign in to comment.