chore: show delegation flag for non-anonymous sessions

This commit is contained in:
Danish Arora 2025-10-30 13:50:57 +05:30
parent 10adec1437
commit 14aa6d43aa
No known key found for this signature in database
GPG Key ID: 1C6EF37CDAE1426E

View File

@ -190,33 +190,35 @@ const Header = () => {
{/* User Status & Actions */}
{isConnected || currentUser?.verificationStatus === EVerificationStatus.ANONYMOUS ? (
<div className="flex items-center space-x-2">
{/* Status Badge */}
<Badge
variant="outline"
className={`font-mono text-xs border-0 ${
currentUser?.verificationStatus ===
EVerificationStatus.ENS_VERIFIED &&
delegationInfo?.isValid
? 'bg-green-500/20 text-green-400 border-green-500/30'
: currentUser?.verificationStatus ===
EVerificationStatus.ENS_VERIFIED
? 'bg-orange-500/20 text-orange-400 border-orange-500/30'
: 'bg-yellow-500/20 text-yellow-400 border-yellow-500/30'
}`}
>
{getStatusIcon()}
<span className="ml-1">
{currentUser?.verificationStatus ===
EVerificationStatus.WALLET_UNCONNECTED
? 'CONNECT'
: delegationInfo?.isValid
? 'READY'
{/* Status Badge - hidden for anonymous sessions */}
{currentUser?.verificationStatus !== EVerificationStatus.ANONYMOUS && (
<Badge
variant="outline"
className={`font-mono text-xs border-0 ${
currentUser?.verificationStatus ===
EVerificationStatus.ENS_VERIFIED &&
delegationInfo?.isValid
? 'bg-green-500/20 text-green-400 border-green-500/30'
: currentUser?.verificationStatus ===
EVerificationStatus.ENS_VERIFIED
? 'EXPIRED'
: 'DELEGATE'}
</span>
</Badge>
? 'bg-orange-500/20 text-orange-400 border-orange-500/30'
: 'bg-yellow-500/20 text-yellow-400 border-yellow-500/30'
}`}
>
{getStatusIcon()}
<span className="ml-1">
{currentUser?.verificationStatus ===
EVerificationStatus.WALLET_UNCONNECTED
? 'CONNECT'
: delegationInfo?.isValid
? 'READY'
: currentUser?.verificationStatus ===
EVerificationStatus.ENS_VERIFIED
? 'EXPIRED'
: 'DELEGATE'}
</span>
</Badge>
)}
{/* User Dropdown */}
<DropdownMenu>