feat: super duper secret map

This commit is contained in:
TrèsAbhi committed 2024-04-19 09:26:53 -05:00
1 parent dd88d42884
commit 23d8c54366
2 files changed
+26

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
import { Flex, Link } from '@radix-ui/themes';
import { use } from 'react';
import PageWrapper from '../../../../components/PageWrapper';
import { tankDefinitions } from '../../../../core/blitzkrieg/tankDefinitions';
export default function Page() {
const awaitedTankDefinitions = use(tankDefinitions);
return (
<PageWrapper>
<Flex direction="column" align="center">
{Object.values(awaitedTankDefinitions)
.sort((a, b) => b.tier - a.tier)
.map((tank) => (
<Link href={`./${tank.id}`}>{tank.name}</Link>
))}
</Flex>
</PageWrapper>
);
}
+6
View File
@@ -1,5 +1,7 @@
'use client';
import { Flex } from '@radix-ui/themes';
import Link from 'next/link';
import { useRouter } from 'next/navigation';
import PageWrapper from '../../../components/PageWrapper';
import { TankSearch } from './components/TankSearch';
@@ -14,6 +16,10 @@ export default function Page() {
router.push(`./tankopedia/${tank.id}`);
}}
/>
<Flex justify="center" mt="4">
<Link href="/tools/tankopedia/map">Super duper secret map</Link>
</Flex>
</PageWrapper>
);
}