Skip to content

Commit

Permalink
Improved flow for empty address book
Browse files Browse the repository at this point in the history
  • Loading branch information
michielpost committed May 7, 2024
1 parent d0d61c5 commit ce73dac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/aoWebWallet/Pages/AddressBook.razor
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<MudText Typo="Typo.h5">Address Book</MudText>

<MudContainer Width="100%" Class="d-flex justify-end mb-4 pr-3 d-max-w-100">
@if (BindingContext.WalletList.Data != null && BindingContext.WalletList.Data.Any())
@if (BindingContext.WalletList.Data != null)
{
<MudTooltip Text="Add contact" Arrow="true" Placement="Placement.Left">
<MudIconButton Icon="@Icons.Material.Filled.AddCircle" aria-label="add contact" Size="Size.Large" OnClick="OpenDialog"></MudIconButton>
Expand Down Expand Up @@ -67,7 +67,8 @@
{
<MudGrid Row="true" Justify="Justify.Center" Class="p-2">
<MudItem sm="12" xs="12">
<AddWalletComponent IsExpanded="true"></AddWalletComponent>
<MudText>Your Address Book is currently empty.</MudText>
<MudButton OnClick="OpenDialog">Add your first contact</MudButton>
</MudItem>
</MudGrid>

Expand Down

0 comments on commit ce73dac

Please sign in to comment.