Add OtpDialogService for mobile-friendly OTP authentication dialog

This commit is contained in:
masoodafar-web
2025-11-17 02:53:51 +03:30
parent a0c1452a84
commit 52b8298a18
34 changed files with 1495 additions and 279 deletions
@@ -0,0 +1,22 @@
using FrontOffice.Main.Utilities;
using Microsoft.AspNetCore.Components;
namespace FrontOffice.Main.Pages.Profile;
public partial class Wallet : ComponentBase
{
[Inject] private WalletService WalletService { get; set; } = default!;
private (string Credit, string Network) _balances = ("-", "-");
private List<WalletTransaction> _txs = new();
protected override async Task OnInitializedAsync()
{
var b = await WalletService.GetBalancesAsync();
_balances = (FormatPrice(b.CreditBalance), FormatPrice(b.NetworkBalance));
_txs = await WalletService.GetTransactionsAsync();
}
private static string FormatPrice(long price) => string.Format("{0:N0} تومان", price);
}