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> <p className="text-sm text-muted-foreground truncate">{actor.handle}</p>
</div> </div>
</Link> </Link>
<Button <div className="flex flex-col items-end gap-1">
onClick={handleFollow} <Button
disabled={loading || followed} onClick={handleFollow}
variant={followed ? "secondary" : "default"} disabled={loading || followed}
size="sm" variant={followed ? "secondary" : "default"}
> size="sm"
<UserPlus className="mr-2 h-4 w-4" /> >
{followed ? "Requested" : "Follow"} <UserPlus className="mr-2 h-4 w-4" />
</Button> {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> </div>
); );
} }