Skip to content

Commit d641876

Browse files
#1087 Upgrade Mudblazor from v7.15.0 to v8.0.0 (#1088)
1 parent 8e762f0 commit d641876

File tree

8 files changed

+46
-46
lines changed

8 files changed

+46
-46
lines changed

src/apps/blazor/client/Components/Dialogs/DeleteConfirmation.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
@code {
1818
[CascadingParameter]
19-
MudDialogInstance MudDialog { get; set; } = default!;
19+
IMudDialogInstance MudDialog { get; set; } = default!;
2020

2121
[Parameter]
2222
public string? ContentText { get; set; }

src/apps/blazor/client/Components/Dialogs/Logout.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
[Parameter] public Color Color { get; set; }
2828

29-
[CascadingParameter] MudDialogInstance MudDialog { get; set; } = default!;
29+
[CascadingParameter] IMudDialogInstance MudDialog { get; set; } = default!;
3030

3131
async Task Submit()
3232
{

src/apps/blazor/client/Components/EntityTable/AddEditModal.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public partial class AddEditModal<TRequest> : IAddEditModal<TRequest>
2525
public string? SuccessMessage { get; set; }
2626

2727
[CascadingParameter]
28-
private MudDialogInstance MudDialog { get; set; } = default!;
28+
private IMudDialogInstance MudDialog { get; set; } = default!;
2929

3030
private FshValidation? _customValidation;
3131

src/apps/blazor/client/Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
<PackageVersion Include="Blazored.LocalStorage" Version="4.5.0" />
1818
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="9.0.0" />
1919
<PackageVersion Include="Microsoft.Extensions.Http" Version="9.0.0" />
20-
<PackageVersion Include="MudBlazor" Version="7.15.0" />
20+
<PackageVersion Include="MudBlazor" Version="8.0.0" />
2121
</ItemGroup>
2222
</Project>

src/apps/blazor/client/Layout/BaseLayout.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected override async Task OnInitializedAsync()
2424
config.Icon = Icons.Custom.Brands.GitHub;
2525
config.Action = "Star us on Github!";
2626
config.ActionColor = Color.Info;
27-
config.Onclick = snackbar =>
27+
config.OnClick = snackbar =>
2828
{
2929
Navigation.NavigateTo("https://github.com/fullstackhero/dotnet-starter-kit");
3030
return Task.CompletedTask;

src/apps/blazor/client/Pages/Multitenancy/UpgradeSubscriptionModal.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
@code
3232
{
3333
[Parameter] public UpgradeSubscriptionCommand Request { get; set; } = new();
34-
[CascadingParameter] private MudDialogInstance MudDialog { get; set; } = default!;
34+
[CascadingParameter] private IMudDialogInstance MudDialog { get; set; } = default!;
3535
DateTime? date = DateTime.Today;
3636

3737
protected override void OnInitialized() =>

src/apps/blazor/infrastructure/Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
<PackageVersion Include="Blazored.LocalStorage" Version="4.5.0" />
1818
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="9.0.0" />
1919
<PackageVersion Include="Microsoft.Extensions.Http" Version="9.0.0" />
20-
<PackageVersion Include="MudBlazor" Version="7.15.0" />
20+
<PackageVersion Include="MudBlazor" Version="8.0.0" />
2121
</ItemGroup>
2222
</Project>

src/apps/blazor/infrastructure/Themes/CustomTypography.cs

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,108 +6,108 @@ public static class CustomTypography
66
{
77
public static Typography FshTypography => new Typography()
88
{
9-
Default = new Default()
9+
Default = new DefaultTypography()
1010
{
1111
FontFamily = ["Montserrat", "Helvetica", "Arial", "sans-serif"],
1212
FontSize = ".875rem",
13-
FontWeight = 400,
14-
LineHeight = 1.43,
13+
FontWeight = "400",
14+
LineHeight = "1.43",
1515
LetterSpacing = ".01071em"
1616
},
17-
H1 = new H1()
17+
H1 = new H1Typography()
1818
{
1919
FontFamily = ["Montserrat", "Helvetica", "Arial", "sans-serif"],
2020
FontSize = "3rem",
21-
FontWeight = 300,
22-
LineHeight = 1.167,
21+
FontWeight = "300",
22+
LineHeight = "1.167",
2323
LetterSpacing = "-.01562em"
2424
},
25-
H2 = new H2()
25+
H2 = new H2Typography()
2626
{
2727
FontFamily = ["Montserrat", "Helvetica", "Arial", "sans-serif"],
2828
FontSize = "2.75rem",
29-
FontWeight = 300,
30-
LineHeight = 1.2,
29+
FontWeight = "300",
30+
LineHeight = "1.2",
3131
LetterSpacing = "-.00833em"
3232
},
33-
H3 = new H3()
33+
H3 = new H3Typography()
3434
{
3535
FontFamily = ["Montserrat", "Helvetica", "Arial", "sans-serif"],
3636
FontSize = "2rem",
37-
FontWeight = 400,
38-
LineHeight = 1.167,
37+
FontWeight = "400",
38+
LineHeight = "1.167",
3939
LetterSpacing = "0"
4040
},
41-
H4 = new H4()
41+
H4 = new H4Typography()
4242
{
4343
FontFamily = ["Montserrat", "Helvetica", "Arial", "sans-serif"],
4444
FontSize = "1.75rem",
45-
FontWeight = 400,
46-
LineHeight = 1.235,
45+
FontWeight = "400",
46+
LineHeight = "1.235",
4747
LetterSpacing = ".00735em"
4848
},
49-
H5 = new H5()
49+
H5 = new H5Typography()
5050
{
5151
FontFamily = ["Montserrat", "Helvetica", "Arial", "sans-serif"],
5252
FontSize = "1.5rem",
53-
FontWeight = 400,
54-
LineHeight = 1.334,
53+
FontWeight = "400",
54+
LineHeight = "1.334",
5555
LetterSpacing = "0"
5656
},
57-
H6 = new H6()
57+
H6 = new H6Typography()
5858
{
5959
FontFamily = ["Montserrat", "Helvetica", "Arial", "sans-serif"],
6060
FontSize = "1.25rem",
61-
FontWeight = 400,
62-
LineHeight = 1.6,
61+
FontWeight = "400",
62+
LineHeight = "1.6",
6363
LetterSpacing = ".0075em"
6464
},
65-
Button = new Button()
65+
Button = new ButtonTypography()
6666
{
6767
FontFamily = ["Montserrat", "Helvetica", "Arial", "sans-serif"],
6868
FontSize = ".875rem",
69-
FontWeight = 400,
70-
LineHeight = 1.75,
69+
FontWeight = "400",
70+
LineHeight = "1.75",
7171
LetterSpacing = ".02857em"
7272
},
73-
Body1 = new Body1()
73+
Body1 = new Body1Typography()
7474
{
7575
FontFamily = ["Montserrat", "Helvetica", "Arial", "sans-serif"],
7676
FontSize = "1rem",
77-
FontWeight = 400,
78-
LineHeight = 1.5,
77+
FontWeight = "400",
78+
LineHeight = "1.5",
7979
LetterSpacing = ".00938em"
8080
},
81-
Body2 = new Body2()
81+
Body2 = new Body2Typography()
8282
{
8383
FontFamily = ["Montserrat", "Helvetica", "Arial", "sans-serif"],
8484
FontSize = ".875rem",
85-
FontWeight = 400,
86-
LineHeight = 1.43,
85+
FontWeight = "400",
86+
LineHeight = "1.43",
8787
LetterSpacing = ".01071em"
8888
},
89-
Caption = new Caption()
89+
Caption = new CaptionTypography()
9090
{
9191
FontFamily = ["Montserrat", "Helvetica", "Arial", "sans-serif"],
9292
FontSize = ".75rem",
93-
FontWeight = 200,
94-
LineHeight = 1.66,
93+
FontWeight = "200",
94+
LineHeight = "1.66",
9595
LetterSpacing = ".03333em"
9696
},
97-
Subtitle1 = new Subtitle1()
97+
Subtitle1 = new Subtitle1Typography()
9898
{
9999
FontFamily = ["Montserrat", "Helvetica", "Arial", "sans-serif"],
100100
FontSize = "1rem",
101-
FontWeight = 400,
102-
LineHeight = 1.57,
101+
FontWeight = "400",
102+
LineHeight = "1.57",
103103
LetterSpacing = ".00714em"
104104
},
105-
Subtitle2 = new Subtitle2()
105+
Subtitle2 = new Subtitle2Typography()
106106
{
107107
FontFamily = ["Montserrat", "Helvetica", "Arial", "sans-serif"],
108108
FontSize = ".875rem",
109-
FontWeight = 400,
110-
LineHeight = 1.57,
109+
FontWeight = "400",
110+
LineHeight = "1.57",
111111
LetterSpacing = ".00714em"
112112
}
113113
};

0 commit comments

Comments
 (0)