Skip to content

Commit

Permalink
feat: Displayed if user is online or offline
Browse files Browse the repository at this point in the history
  • Loading branch information
RareMmemshima authored and PoulavBhowmick03 committed Feb 28, 2025
1 parent 6c64885 commit 6425949
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions client/app/agent/transaction/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,18 @@ export default function TransactionPage() {
</div>

<div className="mt-auto flex items-center gap-2">
<div className="h-2 w-2 rounded-full bg-green-500 animate-pulse" />
<span className="text-sm text-green-500">Online</span>
</div>
{address ? (
<>
<div className="h-2 w-2 rounded-full bg-green-500 animate-pulse" />
<span className="text-sm text-green-500">Online</span>
</>
) : (
<>
<div className="h-2 w-2 rounded-full bg-red-500 animate-pulse" />
<span className="text-sm text-red-500 animate-pulse">Offline</span>
</>
)}
</div>
</div>

{/* Main Content */}
Expand Down

0 comments on commit 6425949

Please sign in to comment.