[CHANGE] Remove build warning
This commit is contained in:
@@ -5,11 +5,11 @@ namespace Manager.App.Components.Layout;
|
||||
|
||||
public partial class BaseLayout
|
||||
{
|
||||
private readonly MudTheme _mudTheme = new MudTheme();
|
||||
private readonly MudTheme _mudTheme = new();
|
||||
private MudThemeProvider? _themeProvider;
|
||||
private bool _isDarkTheme = true;
|
||||
|
||||
public event EventHandler<bool>? OnDarkThemeChanged;
|
||||
public EventCallback<bool> OnDarkThemeChanged;
|
||||
|
||||
public bool DarkTheme
|
||||
{
|
||||
@@ -31,7 +31,6 @@ public partial class BaseLayout
|
||||
if (firstRender && _themeProvider != null)
|
||||
{
|
||||
DarkTheme = await _themeProvider.GetSystemDarkModeAsync();
|
||||
_themeProvider.IsDarkModeChanged = EventCallback.Factory.Create<bool>(this, x => OnDarkThemeChanged?.Invoke(this, x));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user