diff --git a/MyApp/Components/Pages/Questions/Index.razor b/MyApp/Components/Pages/Questions/Index.razor index 84dfc69..cc01099 100644 --- a/MyApp/Components/Pages/Questions/Index.razor +++ b/MyApp/Components/Pages/Questions/Index.razor @@ -22,14 +22,14 @@ @if (total > PageSize) { - + } @if (total > PageSize) { - + } } else diff --git a/MyApp/Components/Shared/PagesNav.razor b/MyApp/Components/Shared/PagesNav.razor index fdb0b87..3805bad 100644 --- a/MyApp/Components/Shared/PagesNav.razor +++ b/MyApp/Components/Shared/PagesNav.razor @@ -96,6 +96,7 @@ [Parameter] public string? @class { get; set; } [Parameter] public required string Path { get; set; } + [Parameter] public required string? Tab { get; set; } [Parameter] public required long? Total { get; set; } [Parameter] public required int? PageSize { get; set; } [Parameter] public required int Page { get; set; } @@ -108,5 +109,5 @@ int EndPage => Math.Min(StartPage + 5, Pages); public string GetRoute(int? page = 1, int? pageSize = null) => - Path.AddQueryParam("page", page).AddQueryParam("pagesize", pageSize); + Path.AddQueryParam("tab", Tab).AddQueryParam("page", page).AddQueryParam("pagesize", pageSize); } \ No newline at end of file