feat(frontend): add follow request explanation to remote user card
This commit is contained in:
@@ -53,6 +53,7 @@ export function RemoteUserCard({ actor }: RemoteUserCardProps) {
|
||||
<p className="text-sm text-muted-foreground truncate">{actor.handle}</p>
|
||||
</div>
|
||||
</Link>
|
||||
<div className="flex flex-col items-end gap-1">
|
||||
<Button
|
||||
onClick={handleFollow}
|
||||
disabled={loading || followed}
|
||||
@@ -62,6 +63,12 @@ export function RemoteUserCard({ actor }: RemoteUserCardProps) {
|
||||
<UserPlus className="mr-2 h-4 w-4" />
|
||||
{followed ? "Requested" : "Follow"}
|
||||
</Button>
|
||||
{followed && (
|
||||
<p className="text-xs text-muted-foreground text-right">
|
||||
They'll be notified and can accept from their app.
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user