fix: use correct key for signer status, update signer badge icons
This commit is contained in:
parent
4b04bdf39e
commit
3743a30ef6
@ -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:
|
||||||
|
@ -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}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user