feat: tanks tree first step

This commit is contained in:
Michael Shabanov committed 2022-07-20 12:19:35 +02:00
1 parent fff699faf1
commit 486538acc0
11 files changed
+116 -79

No files matched your search

@@ -49,6 +49,16 @@
<RadzenTabsItem Icon="military_tech">
<PlayerInfoAchievements AchievementsBySection = "@AchievementsBySection"></PlayerInfoAchievements>
</RadzenTabsItem>
<RadzenTabsItem Icon="account_tree">
@if (SmallScreen)
{
<PlayerInfoTanksTreeSmall TanksList="@AccountInfo.Tanks"></PlayerInfoTanksTreeSmall>
}
else
{
<PlayerInfoTanksTree TanksList="@AccountInfo.Tanks"></PlayerInfoTanksTree>
}
</RadzenTabsItem>
</Tabs>
</RadzenTabs>
}
@@ -0,0 +1,3 @@
@inherits PlayerInfoTanksTreeBase;
<TankCard [email protected]()></TankCard>
@@ -0,0 +1,21 @@
using MediatR;
using Microsoft.AspNetCore.Components;
using Microsoft.Extensions.Localization;
using System.Collections.Generic;
using WotBlitzStatisticsPro.Blazor.GraphQl;
namespace WotBlitzStatisticsPro.Blazor.Pages
{
public class PlayerInfoTanksTreeBase: ComponentBase
{
[Parameter]
public IEnumerable<ITank> TanksList { get; set; }
[Inject]
public IStringLocalizer<App> Localize { get; set; }
[Inject]
public IMediator Mediator { get; set; }
}
}
@@ -0,0 +1,3 @@
@inherits PlayerInfoTanksTreeBase;
<TankListItem [email protected]()></TankListItem>