fix: use correct key for signer status, update signer badge icons

This commit is contained in:
enes 2024-08-14 14:31:26 +02:00
parent 4b04bdf39e
commit 3743a30ef6
2 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@ import { UserAvatar } from '../UserAvatar'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { import {
faCheck, faCheck,
faEllipsis,
faExclamation, faExclamation,
faEye, faEye,
faHourglass, faHourglass,
@ -35,7 +36,7 @@ export const DisplaySigner = ({
</Spinner> </Spinner>
) )
case SignStatus.Pending: case SignStatus.Pending:
return <FontAwesomeIcon icon={faHourglass} /> return <FontAwesomeIcon icon={faEllipsis} />
case SignStatus.Invalid: case SignStatus.Invalid:
return <FontAwesomeIcon icon={faExclamation} /> return <FontAwesomeIcon icon={faExclamation} />
case SignStatus.Viewer: case SignStatus.Viewer:

View File

@ -112,7 +112,7 @@ export const UsersDetails = ({
> >
<TooltipChild> <TooltipChild>
<DisplaySigner <DisplaySigner
status={signersStatus[pubkey as `npub1${string}`]} status={signersStatus[signer]}
profile={profile} profile={profile}
pubkey={pubkey} pubkey={pubkey}
/> />