diff --git a/src/aoWebWallet/Pages/AddressBook.razor b/src/aoWebWallet/Pages/AddressBook.razor index 78f3f88..9af82b2 100644 --- a/src/aoWebWallet/Pages/AddressBook.razor +++ b/src/aoWebWallet/Pages/AddressBook.razor @@ -27,14 +27,12 @@ { if(BindingContext.WalletList.Data.Where(x => x.IsReadOnly).Any()) { - int logoCount = 1; foreach (var wallet in BindingContext.WalletList.Data.Where(x => x.IsReadOnly)) { - string logoUrl = $"images/account--{logoCount}.svg"; string detailUrl = $"wallet/{wallet.Address}"; - +
@@ -57,10 +55,6 @@ - - logoCount++; - if (logoCount > 5) - logoCount = 1; } } else diff --git a/src/aoWebWallet/Pages/WalletDetail.razor b/src/aoWebWallet/Pages/WalletDetail.razor index 714219a..d8fee90 100644 --- a/src/aoWebWallet/Pages/WalletDetail.razor +++ b/src/aoWebWallet/Pages/WalletDetail.razor @@ -15,7 +15,7 @@ - + @Address diff --git a/src/aoWebWallet/Pages/Wallets.razor b/src/aoWebWallet/Pages/Wallets.razor index 7f8f2d1..1671349 100644 --- a/src/aoWebWallet/Pages/Wallets.razor +++ b/src/aoWebWallet/Pages/Wallets.razor @@ -40,11 +40,10 @@ int logoCount = 1; foreach (var wallet in BindingContext.WalletList.Data.Where(x => !x.IsReadOnly)) { - string logoUrl = $"images/account--{logoCount}.svg"; string detailUrl = $"wallet/{wallet.Address}"; - +
diff --git a/src/aoWebWallet/Shared/Components/WalletAvatar.razor b/src/aoWebWallet/Shared/Components/WalletAvatar.razor new file mode 100644 index 0000000..8b77caa --- /dev/null +++ b/src/aoWebWallet/Shared/Components/WalletAvatar.razor @@ -0,0 +1,9 @@ +
+ +
+ +@code { + + [Parameter] + public string? Address { get; set; } +} diff --git a/src/aoWebWallet/Shared/NavMenu.razor b/src/aoWebWallet/Shared/NavMenu.razor index 2e95140..c3d328d 100644 --- a/src/aoWebWallet/Shared/NavMenu.razor +++ b/src/aoWebWallet/Shared/NavMenu.razor @@ -6,20 +6,16 @@ { Home - @{ - int logoCount = 1; - } @foreach (var wallet in BindingContext.WalletList.Data?.Where(x => !x.IsReadOnly).ToList() ?? new()) { - string logoUrl = $"images/account--{logoCount}.svg"; - string detailUrl = $"wallet/{wallet.Address}"; + string detailUrl = $"wallet/{wallet.Address}"; - +
+ +
@wallet.Address.ToShortAddress()
- - logoCount++; }
} diff --git a/src/aoWebWallet/ViewModels/WalletDetailViewModel.cs b/src/aoWebWallet/ViewModels/WalletDetailViewModel.cs index 64b386c..70969fb 100644 --- a/src/aoWebWallet/ViewModels/WalletDetailViewModel.cs +++ b/src/aoWebWallet/ViewModels/WalletDetailViewModel.cs @@ -50,9 +50,6 @@ public partial class WalletDetailViewModel : ObservableObject [ObservableProperty] public bool? hasArConnectExtension; - public int? SelectedWalletIndex { get; set; } - - public WalletDetailsViewModel? SelectedWallet { get; set; } @@ -194,9 +191,6 @@ private async Task SelectWallet(string? address) if (current != null) { SelectedWallet = new WalletDetailsViewModel(current); - var indexOf = all.IndexOf(current); - SelectedWalletIndex = (indexOf % 5) + 1; - } else { @@ -209,7 +203,6 @@ private async Task SelectWallet(string? address) Source = WalletTypes.Explorer }; SelectedWallet = new WalletDetailsViewModel(tempWallet); - SelectedWalletIndex = 5; } this.LoadBalanceDataList(address); @@ -224,7 +217,6 @@ private async Task SelectWallet(string? address) else { SelectedWallet = null; - SelectedWalletIndex = null; } } diff --git a/src/aoWebWallet/wwwroot/images/account--1.svg b/src/aoWebWallet/wwwroot/images/account--1.svg deleted file mode 100644 index 0f5eabf..0000000 --- a/src/aoWebWallet/wwwroot/images/account--1.svg +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/aoWebWallet/wwwroot/images/account--2.svg b/src/aoWebWallet/wwwroot/images/account--2.svg deleted file mode 100644 index 3b973e4..0000000 --- a/src/aoWebWallet/wwwroot/images/account--2.svg +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/src/aoWebWallet/wwwroot/images/account--3.svg b/src/aoWebWallet/wwwroot/images/account--3.svg deleted file mode 100644 index 03fd0b7..0000000 --- a/src/aoWebWallet/wwwroot/images/account--3.svg +++ /dev/null @@ -1,184 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/aoWebWallet/wwwroot/images/account--4.svg b/src/aoWebWallet/wwwroot/images/account--4.svg deleted file mode 100644 index cc36913..0000000 --- a/src/aoWebWallet/wwwroot/images/account--4.svg +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/aoWebWallet/wwwroot/images/account--5.svg b/src/aoWebWallet/wwwroot/images/account--5.svg deleted file mode 100644 index ee02298..0000000 --- a/src/aoWebWallet/wwwroot/images/account--5.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - diff --git a/src/aoWebWallet/wwwroot/index.html b/src/aoWebWallet/wwwroot/index.html index b061bb3..5ccda02 100644 --- a/src/aoWebWallet/wwwroot/index.html +++ b/src/aoWebWallet/wwwroot/index.html @@ -55,6 +55,9 @@ +