[frontend/components] Use UserDisplayName in NotificationComponent
This commit is contained in:
parent
0c8b79a489
commit
c15832f37a
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,9 @@
|
||||||
<div class="notification-body">
|
<div class="notification-body">
|
||||||
@if (NotificationResponse is { User: not null })
|
@if (NotificationResponse is { User: not null })
|
||||||
{
|
{
|
||||||
<span @onclick="OpenProfile" class="display-name">@(NotificationResponse.User.DisplayName ?? NotificationResponse.User.Username)</span>
|
<span @onclick="OpenProfile" class="display-name">
|
||||||
|
<UserDisplayName User="@NotificationResponse.User" />
|
||||||
|
</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
@switch (NotificationResponse)
|
@switch (NotificationResponse)
|
||||||
|
|
Loading…
Add table
Reference in a new issue