From 14aa6d43aa7bba821ce2ea91b2947c0e701beb70 Mon Sep 17 00:00:00 2001 From: Danish Arora Date: Thu, 30 Oct 2025 13:50:57 +0530 Subject: [PATCH] chore: show delegation flag for non-anonymous sessions --- app/src/components/Header.tsx | 52 ++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/app/src/components/Header.tsx b/app/src/components/Header.tsx index 69c07fe..5f6e41f 100644 --- a/app/src/components/Header.tsx +++ b/app/src/components/Header.tsx @@ -190,33 +190,35 @@ const Header = () => { {/* User Status & Actions */} {isConnected || currentUser?.verificationStatus === EVerificationStatus.ANONYMOUS ? (
- {/* Status Badge */} - - {getStatusIcon()} - - {currentUser?.verificationStatus === - EVerificationStatus.WALLET_UNCONNECTED - ? 'CONNECT' - : delegationInfo?.isValid - ? 'READY' + {/* Status Badge - hidden for anonymous sessions */} + {currentUser?.verificationStatus !== EVerificationStatus.ANONYMOUS && ( + - + ? 'bg-orange-500/20 text-orange-400 border-orange-500/30' + : 'bg-yellow-500/20 text-yellow-400 border-yellow-500/30' + }`} + > + {getStatusIcon()} + + {currentUser?.verificationStatus === + EVerificationStatus.WALLET_UNCONNECTED + ? 'CONNECT' + : delegationInfo?.isValid + ? 'READY' + : currentUser?.verificationStatus === + EVerificationStatus.ENS_VERIFIED + ? 'EXPIRED' + : 'DELEGATE'} + + + )} {/* User Dropdown */}