Skip to content

Commit

Permalink
Show a message when there are no events user joined
Browse files Browse the repository at this point in the history
  • Loading branch information
Capella87 committed Sep 8, 2024
1 parent a0c6a18 commit 3ed727f
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
}
else
{
@if (_events.Count == 0)
{
<FluentGridItem Id="no-events" xs="12" sm="12" Justify="JustifyContent.Center" Style="text-align: center; flex-grow: 1;">
<div style="flex-grow: 1; display: flex; padding: 0em; flex-direction: row; align-items: center; align-content: center; justify-content: center;">
<h4>You dont have any events you have participated in now.</h4>
</div>
</FluentGridItem>
}
else
{
@foreach (var e in _events)
{
<EventItemComponent Id="@e.EventId"
Expand All @@ -26,6 +36,7 @@
</EventItemComponent>
}
}
}
</FluentGrid>

@code {
Expand Down

0 comments on commit 3ed727f

Please sign in to comment.