[frontend] Hide bio in follow request list

This commit is contained in:
Lilian 2024-07-09 02:48:34 +02:00
parent bf186a9f22
commit fd473e230a
No known key found for this signature in database
2 changed files with 8 additions and 4 deletions

View file

@ -9,7 +9,7 @@
<div class="follow-request-card">
<UserProfileCard User="FollowRequest.User"></UserProfileCard>
<UserProfileCard User="FollowRequest.User" ShowBio="false"></UserProfileCard>
<div class="buttons">
<button @onclick="Accept" class="btn accept">
<Icon Name="Icons.Check"/>

View file

@ -21,15 +21,19 @@
</div>
</div>
</div>
@if (ShowBio)
{
<div class="bio">
<MfmText Text="@UserProfile.Bio"/>
</div>
}
</div>
}
@code {
[Parameter] [EditorRequired] public required UserResponse User { get; set; }
private UserProfileResponse? UserProfile { get; set; }
[Parameter] public bool ShowBio { get; set; } = true;
protected override async Task OnInitializedAsync()
{