Skip to content

Commit

Permalink
Update Commitments
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Mar 17, 2024
1 parent 908fa13 commit aecff41
Showing 1 changed file with 34 additions and 17 deletions.
51 changes: 34 additions & 17 deletions web/src/txHistory/TransactionEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,24 +155,41 @@ export const TransactionEntry: FC<{ txHash: EtherscanTx }> = ({ txHash }) => {
className="hidden"
/>
<div className="open-if-checkbox space-y-2">
<div className="flex gap-2 border border-light-border dark:border-dark-border p-2 rounded-lg">
<div>Names</div>
<div>
<ul className="grid grid-cols-2 gap-2">
{inputData?.args[0].map((name, _index) => (
<li>
<a
href={'https://ens.app/' + name}
className="link"
target="_blank"
>
{name}
</a>
</li>
))}
</ul>
{inputData?.functionName === 'multiRegister' ||
(inputData?.functionName === 'renewAll' && (
<div className="flex gap-2 border border-light-border dark:border-dark-border p-2 rounded-lg">
<div>Names</div>
<div>
<ul className="grid grid-cols-2 gap-2">
{inputData?.args[0].map((name, _index) => (
<li>
<a
href={'https://ens.app/' + name}
className="link"
target="_blank"
>
{name}
</a>
</li>
))}
</ul>
</div>
</div>
))}
{inputData?.functionName === 'multiCommit' && (
<div className="flex gap-2 border border-light-border dark:border-dark-border p-2 rounded-lg">
<div>Commitments</div>
<div>
<ul className="grid grid-cols-2 gap-2">
{inputData?.args[0].map(
(commitment, _index) => (
<li>{commitment}</li>
)
)}
</ul>
</div>
</div>
</div>
)}
<div className="whitespace-break-spaces break-words w-full overflow-hidden bg-light-background-secondary rounded-lg p-4">
<span>{JSON.stringify(txHash)}</span>
</div>
Expand Down

0 comments on commit aecff41

Please sign in to comment.