diff --git a/RBLNews.Maui/MauiProgram.cs b/RBLNews.Maui/MauiProgram.cs index 0656f53..ad070f6 100644 --- a/RBLNews.Maui/MauiProgram.cs +++ b/RBLNews.Maui/MauiProgram.cs @@ -1,4 +1,6 @@ -using Microsoft.Extensions.Logging; +using Microsoft.Extensions.DependencyInjection.Extensions; +using Microsoft.Extensions.Logging; +using RBLNews.Shared.Services; namespace RBLNews.Maui { @@ -17,6 +19,8 @@ namespace RBLNews.Maui builder.Services.AddMauiBlazorWebView(); builder.Services.AddBlazorBootstrap(); + builder.Services.AddSingleton(); + #if DEBUG builder.Services.AddBlazorWebViewDeveloperTools(); builder.Logging.AddDebug(); diff --git a/RBLNews.Shared/Components/Layout/MainLayout.razor b/RBLNews.Shared/Components/Layout/MainLayout.razor index 077613b..f5f946b 100644 --- a/RBLNews.Shared/Components/Layout/MainLayout.razor +++ b/RBLNews.Shared/Components/Layout/MainLayout.razor @@ -1,17 +1,15 @@ @inherits LayoutComponentBase -
- - @*