From 252bb497863efe63654e4759efa6095a12152115 Mon Sep 17 00:00:00 2001 From: BOT Alex <44818698+MagicBOTAlex@users.noreply.github.com> Date: Tue, 27 Jun 2023 14:58:10 +0200 Subject: [PATCH] Update Program.cs --- LearningChineseSimplified/Program.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/LearningChineseSimplified/Program.cs b/LearningChineseSimplified/Program.cs index cbf3706..dff95f9 100644 --- a/LearningChineseSimplified/Program.cs +++ b/LearningChineseSimplified/Program.cs @@ -2,6 +2,7 @@ using LearningChineseSimplified; using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using MudBlazor.Services; +using Blazored.LocalStorage; internal class Program { @@ -12,7 +13,12 @@ internal class Program builder.RootComponents.Add("head::after"); builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); - builder.Services.AddMudServices(); + builder.Services.AddMudServices(config => + { + config.SnackbarConfiguration.ShowTransitionDuration = 100; + config.SnackbarConfiguration.HideTransitionDuration = 100; + }); + builder.Services.AddBlazoredLocalStorage(); await builder.Build().RunAsync(); }