also fix signer mapping ui for rejected and cancelled (#678)

This commit is contained in:
Daniel Chew 2023-03-09 23:57:24 +09:00 committed by GitHub
parent c6d9b8df50
commit 5aa38d2ba1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 10 deletions

View File

@ -483,17 +483,14 @@ const Proposal = ({
{currentProposal.rejected.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()}_rejected`}
mapping={multisigSignerKeyToNameMapping}
title="owner"
pubkey={pubkey.toBase58()}
/>
) : null}
</>
))}
</div>
@ -506,7 +503,12 @@ const Proposal = ({
<hr className="border-gray-700" />
{currentProposal.cancelled.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>
))}