diff --git a/demo/StaticSample/StaticSample.Client/Components/MyMudProviders.razor b/demo/StaticSample/StaticSample.Client/Components/MyMudProviders.razor index 847ca7c..e95c615 100644 --- a/demo/StaticSample/StaticSample.Client/Components/MyMudProviders.razor +++ b/demo/StaticSample/StaticSample.Client/Components/MyMudProviders.razor @@ -1,6 +1,6 @@ @inject ISnackbar Snackbar - + diff --git a/demo/StaticSample/StaticSample.Client/Components/MyMudThemeProvider.razor b/demo/StaticSample/StaticSample.Client/Components/MyMudThemeProvider.razor index 963d5dd..97a8f0a 100644 --- a/demo/StaticSample/StaticSample.Client/Components/MyMudThemeProvider.razor +++ b/demo/StaticSample/StaticSample.Client/Components/MyMudThemeProvider.razor @@ -1,11 +1,9 @@ - - - + @code { public static MudTheme MyTheme => new() { - Palette = new PaletteLight() + PaletteLight = new PaletteLight() { Primary = Colors.Teal.Default, AppbarBackground = Colors.Teal.Default diff --git a/demo/StaticSample/StaticSample.Client/StaticSample.Client.csproj b/demo/StaticSample/StaticSample.Client/StaticSample.Client.csproj index 706819a..7522765 100644 --- a/demo/StaticSample/StaticSample.Client/StaticSample.Client.csproj +++ b/demo/StaticSample/StaticSample.Client/StaticSample.Client.csproj @@ -10,9 +10,9 @@ - - - + + + diff --git a/demo/StaticSample/StaticSample/StaticSample.csproj b/demo/StaticSample/StaticSample/StaticSample.csproj index 6f2b8c2..43b1ea8 100644 --- a/demo/StaticSample/StaticSample/StaticSample.csproj +++ b/demo/StaticSample/StaticSample/StaticSample.csproj @@ -9,15 +9,14 @@ - - - - - + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - diff --git a/src/Components/MudStaticButton.razor b/src/Components/MudStaticButton.razor index 5822069..da4b8ca 100644 --- a/src/Components/MudStaticButton.razor +++ b/src/Components/MudStaticButton.razor @@ -62,7 +62,7 @@ else ; } - private RenderFragment RenderHiddenReturnUrl() + private RenderFragment? RenderHiddenReturnUrl() { if (!string.IsNullOrEmpty(ReturnUrl)) { diff --git a/src/Components/MudStaticButton.razor.cs b/src/Components/MudStaticButton.razor.cs index be43704..8dd6fe5 100644 --- a/src/Components/MudStaticButton.razor.cs +++ b/src/Components/MudStaticButton.razor.cs @@ -1,5 +1,4 @@ -using System.Windows.Input; -using Microsoft.AspNetCore.Components; +using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; namespace MudBlazor.StaticInput; @@ -14,10 +13,7 @@ public partial class MudStaticButton : MudButton protected new ButtonType ButtonType { get; set; } protected new string HtmlTag { get; set; } = "button"; protected new string? Href { get; set; } - protected new string? Link { get; set; } protected new string? Target { get; set; } - protected new ICommand? Command { get; set; } protected new bool ClickPropagation { get; set; } - protected new object? CommandParameter { get; set; } protected new EventCallback OnClick { get; set; } } \ No newline at end of file diff --git a/src/Components/MudStaticCheckBox.razor b/src/Components/MudStaticCheckBox.razor index 0dfad7d..2cead7e 100644 --- a/src/Components/MudStaticCheckBox.razor +++ b/src/Components/MudStaticCheckBox.razor @@ -12,7 +12,7 @@ id="@($"static-checkbox-{_elementId}")" disabled="@GetDisabledState()" @onclick:preventDefault="@GetReadOnlyState()"/>