[frontend] Hide bio in follow request list
This commit is contained in:
parent
bf186a9f22
commit
fd473e230a
2 changed files with 8 additions and 4 deletions
|
@ -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"/>
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue