This commit is contained in:
MeysamMoghaddam
2025-09-28 10:55:21 +03:30
parent bba9ba38e5
commit 8c03d00a4b
4 changed files with 217 additions and 122 deletions

View File

@@ -5,6 +5,12 @@ namespace FrontOffice.Main.Shared;
public partial class MainLayout
{
private MudThemeProvider _mudThemeProvider;
private bool _isDark;
private bool _drawerOpen;
private string? _email;
private void ToggleTheme() => _isDark = !_isDark;
private void ToggleDrawer() => _drawerOpen = !_drawerOpen;
private async void Back()
{
await JSRuntime.InvokeVoidAsync("history.back");