diff --git a/Manager.App/Components/Layout/ApplicationLayout.razor b/Manager.App/Components/Layout/ApplicationLayout.razor index 30aacb3..9a10629 100644 --- a/Manager.App/Components/Layout/ApplicationLayout.razor +++ b/Manager.App/Components/Layout/ApplicationLayout.razor @@ -7,7 +7,7 @@ @AppText - + @if (BaseLayout != null) { diff --git a/Manager.App/Components/Layout/BaseLayout.razor b/Manager.App/Components/Layout/BaseLayout.razor index dfacab8..892cce9 100644 --- a/Manager.App/Components/Layout/BaseLayout.razor +++ b/Manager.App/Components/Layout/BaseLayout.razor @@ -1,6 +1,6 @@ @inherits LayoutComponentBase - + diff --git a/Manager.App/Components/Layout/BaseLayout.razor.cs b/Manager.App/Components/Layout/BaseLayout.razor.cs index f338e08..9df567b 100644 --- a/Manager.App/Components/Layout/BaseLayout.razor.cs +++ b/Manager.App/Components/Layout/BaseLayout.razor.cs @@ -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? OnDarkThemeChanged; + public EventCallback 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(this, x => OnDarkThemeChanged?.Invoke(this, x)); } } } \ No newline at end of file diff --git a/Manager.App/Components/Layout/NavMenu.razor b/Manager.App/Components/Layout/NavMenu.razor index 0fbe68c..6bf4a18 100644 --- a/Manager.App/Components/Layout/NavMenu.razor +++ b/Manager.App/Components/Layout/NavMenu.razor @@ -1,7 +1,5 @@  - YouTube Import - Home Accounts Library