feat(frontend): add follow request explanation to remote user card

This commit is contained in:
2026-05-29 01:37:57 +02:00
parent 1ad6f8ae8f
commit c94b42cba8

View File

@@ -53,15 +53,22 @@ export function RemoteUserCard({ actor }: RemoteUserCardProps) {
<p className="text-sm text-muted-foreground truncate">{actor.handle}</p>
</div>
</Link>
<Button
onClick={handleFollow}
disabled={loading || followed}
variant={followed ? "secondary" : "default"}
size="sm"
>
<UserPlus className="mr-2 h-4 w-4" />
{followed ? "Requested" : "Follow"}
</Button>
<div className="flex flex-col items-end gap-1">
<Button
onClick={handleFollow}
disabled={loading || followed}
variant={followed ? "secondary" : "default"}
size="sm"
>
<UserPlus className="mr-2 h-4 w-4" />
{followed ? "Requested" : "Follow"}
</Button>
{followed && (
<p className="text-xs text-muted-foreground text-right">
They&apos;ll be notified and can accept from their app.
</p>
)}
</div>
</div>
);
}