Update Program.cs
This commit is contained in:
parent
d7d0c2dd14
commit
252bb49786
|
@ -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<HeadOutlet>("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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue