feat(frontend): add follow request explanation to remote user card
This commit is contained in:
@@ -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'll be notified and can accept from their app.
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user