From aa52327702f864abfcc2d8460faa4f6f19bd2105 Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Thu, 20 Nov 2025 21:12:04 +0330 Subject: [PATCH] Disable product links and reset wallet balances for testing purposes --- src/FrontOffice.Main/Pages/Profile/Index.razor | 2 +- src/FrontOffice.Main/Shared/MainLayout.razor | 2 +- src/FrontOffice.Main/Utilities/WalletService.cs | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/FrontOffice.Main/Pages/Profile/Index.razor b/src/FrontOffice.Main/Pages/Profile/Index.razor index 03b28eb..8053db4 100644 --- a/src/FrontOffice.Main/Pages/Profile/Index.razor +++ b/src/FrontOffice.Main/Pages/Profile/Index.razor @@ -134,7 +134,7 @@ - + diff --git a/src/FrontOffice.Main/Shared/MainLayout.razor b/src/FrontOffice.Main/Shared/MainLayout.razor index 15c90e7..8bb1f0e 100644 --- a/src/FrontOffice.Main/Shared/MainLayout.razor +++ b/src/FrontOffice.Main/Shared/MainLayout.razor @@ -35,7 +35,7 @@
- @if (_isAuthenticated) + @if (_isAuthenticated && false) { محصولات سبد خرید diff --git a/src/FrontOffice.Main/Utilities/WalletService.cs b/src/FrontOffice.Main/Utilities/WalletService.cs index e3c783f..a62fb53 100644 --- a/src/FrontOffice.Main/Utilities/WalletService.cs +++ b/src/FrontOffice.Main/Utilities/WalletService.cs @@ -5,13 +5,13 @@ public record WalletTransaction(DateTime Date, long Amount, string Channel, stri public class WalletService { - private WalletBalances _balances = new(350_000, 1_250_000); + private WalletBalances _balances = new(0, 0); private readonly List _transactions = new() { - new(DateTime.Now.AddDays(-1), 500_000, "درگاه بانکی", "شارژ کیف پول"), - new(DateTime.Now.AddDays(-2), 200_000, "شبکه/معرف", "پاداش شبکه"), - new(DateTime.Now.AddDays(-4), -120_000, "خرید", "برداشت بابت سفارش #1452"), - new(DateTime.Now.AddDays(-9), 900_000, "کیف پول شرکای تجاری", "اعتبار خرید"), + // new(DateTime.Now.AddDays(-1), 500_000, "درگاه بانکی", "شارژ کیف پول"), + // new(DateTime.Now.AddDays(-2), 200_000, "شبکه/معرف", "پاداش شبکه"), + // new(DateTime.Now.AddDays(-4), -120_000, "خرید", "برداشت بابت سفارش #1452"), + // new(DateTime.Now.AddDays(-9), 900_000, "کیف پول شرکای تجاری", "اعتبار خرید"), }; public Task GetBalancesAsync() => Task.FromResult(_balances);