change signer mapping ui (#677)

This commit is contained in:
Daniel Chew 2023-03-09 14:26:23 +09:00 committed by GitHub
parent 06d58bad5e
commit c6d9b8df50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 9 deletions

View File

@ -462,17 +462,14 @@ const Proposal = ({
{currentProposal.approved.map((pubkey, idx) => (
<>
<div className="flex justify-between" key={pubkey.toBase58()}>
<div>Key {idx + 1}</div>
<div>
Key {idx + 1}{' '}
{pubkey.toBase58() in multisigSignerKeyToNameMapping
? `(${multisigSignerKeyToNameMapping[pubkey.toBase58()]})`
: null}
</div>
<CopyPubkey pubkey={pubkey.toBase58()} />
</div>
{pubkey.toBase58() in multisigSignerKeyToNameMapping ? (
<ParsedAccountPubkeyRow
key={`${idx}_${pubkey.toBase58()}_confirmed`}
mapping={multisigSignerKeyToNameMapping}
title="owner"
pubkey={pubkey.toBase58()}
/>
) : null}
</>
))}
</div>