diff --git a/blazor_lab/Components/Inventory.razor b/blazor_lab/Components/Inventory.razor index 385acda..5f0d3f3 100644 --- a/blazor_lab/Components/Inventory.razor +++ b/blazor_lab/Components/Inventory.razor @@ -3,23 +3,27 @@
- @for (int row = 0; row < 3; row++) {
- @for (int col = 0; col < 6; col++) {
- @if (InventoryContent != null && InventoryContent.Count > (row * 6 + col)) + @for (int row = 0; row < 3; row++) + { +
+ @for (int col = 0; col < 6; col++) { - +
+ @if (InventoryContent != null && InventoryContent.Count > (row * 6 + col)) + { + + } +
} -
- }
} -
+
-
-

@Localizer["list_of_items"]

- -
+
+

@Localizer["list_of_items"]

+ +
-
+ \ No newline at end of file diff --git a/blazor_lab/Components/InventoryList.razor.cs b/blazor_lab/Components/InventoryList.razor.cs index 5ed90bb..6f0628f 100644 --- a/blazor_lab/Components/InventoryList.razor.cs +++ b/blazor_lab/Components/InventoryList.razor.cs @@ -11,7 +11,7 @@ namespace blazor_lab.Components } public partial class InventoryList { - [CascadingParameter] + [CascadingParameter] public Inventory Parent { get; set; } [Inject] diff --git a/blazor_lab/Pages/InventoryPage.razor.cs b/blazor_lab/Pages/InventoryPage.razor.cs index aa9f35f..18c1909 100644 --- a/blazor_lab/Pages/InventoryPage.razor.cs +++ b/blazor_lab/Pages/InventoryPage.razor.cs @@ -1,5 +1,4 @@ -using blazor_lab.Components; -using blazor_lab.Services; +using blazor_lab.Services; using Microsoft.AspNetCore.Components; using Microsoft.Extensions.Localization; diff --git a/blazor_lab/Pages/List.razor.cs b/blazor_lab/Pages/List.razor.cs index 43cca97..ab6c643 100644 --- a/blazor_lab/Pages/List.razor.cs +++ b/blazor_lab/Pages/List.razor.cs @@ -5,7 +5,6 @@ using Blazored.Modal; using Blazored.Modal.Services; using Blazorise.DataGrid; using Microsoft.AspNetCore.Components; -using Microsoft.Extensions.Localization; namespace blazor_lab.Pages {