feat: hide player stats

This commit is contained in:
TrèsAbhi committed 2024-07-02 18:23:01 -05:00
1 parent 39137ae14b
commit 29af2101f4
4 files changed
+10 -11

No files matched your search

+7 -8
View File
@@ -1,13 +1,12 @@
'use client';
import { Box, Flex } from '@radix-ui/themes';
import { Flex } from '@radix-ui/themes';
import { Ad, AdType } from '../components/Ad';
import { AdMidSectionResponsive } from '../components/AdMidSectionResponsive';
import {
compareTool,
discordTool,
moreTool,
playerStatsTool,
ratingTool,
sessionTool,
tankopediaTool,
@@ -65,13 +64,14 @@ export default function Page() {
)}
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
<ToolCard tool={playerStatsTool} />
{/* <ToolCard tool={playerStatsTool} /> */}
<ToolCard tool={compareTool} />
<ToolCard tool={tankPerformanceTool} />
</Flex>
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
<ToolCard tool={tankPerformanceTool} />
<ToolCard tool={sessionTool} />
<ToolCard tool={ratingTool} />
</Flex>
{!exempt && (
@@ -87,14 +87,13 @@ export default function Page() {
)}
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
<ToolCard tool={ratingTool} />
<ToolCard tool={discordTool} />
<ToolCard tool={moreTool} />
</Flex>
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
<ToolCard tool={moreTool} />
{/* <Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
<Box flexGrow="1" />
</Flex>
</Flex> */}
</Flex>
{!exempt && (
+1 -1
View File
@@ -122,7 +122,7 @@ export const TOOLS: Tool[] = [
tankopediaTool,
ratingTool,
compareTool,
playerStatsTool,
// playerStatsTool,
sessionTool,
discordTool,
moreTool,
+1 -1
View File
@@ -177,7 +177,7 @@ const entries = new Promise<TankDefinition[]>(async (resolve) => {
});
export const tanksDefinitionsArray = new Promise<TankDefinition[]>(
async (resolve) => {
resolve((await entries).map((entry) => entry));
resolve((await entries).map((entry) => entry)); // TODO: wtf?
},
);
export const tankNames = tanksDefinitionsArray.then((tanks) =>