mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-16 06:06:11 +01:00
feat: infrastructure for ownedtanks columns
This commit is contained in:
1 parent
2258b0f936
commit
57271e3c23
19 files changed
+25
-19
No files matched your search
@@ -89,6 +89,10 @@ export const ownedTanksCommand: CommandRegistry = {
|
||||
const clanData = await getWargamingResponse<PlayerClanData>(
|
||||
`https://api.wotblitz.${server}/wotb/clans/accountinfo/?application_id=${WARGAMING_APPLICATION_ID}&account_id=${id}&extra=clan`,
|
||||
);
|
||||
const leftColumnSize = Math.ceil(tanks.length / 2);
|
||||
const rightColumnSize = tanks.length - leftColumnSize;
|
||||
const leftColumn = tanks.slice(0, leftColumnSize);
|
||||
const rightColumn = tanks.slice(leftColumnSize);
|
||||
|
||||
return (
|
||||
<Wrapper>
|
||||
|
||||
Reference in new issue
Block a user