mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
feat: module tree
This commit is contained in:
1 parent
89e97f484b
commit
7af5d5f465
4 files changed
+192
-32
No files matched your search
@@ -1,20 +1,22 @@
|
||||
import { ChevronRightIcon } from '@radix-ui/react-icons';
|
||||
import { Flex, Heading, Text } from '@radix-ui/themes';
|
||||
import Link from 'next/link';
|
||||
import { use } from 'react';
|
||||
import { ComponentProps, use } from 'react';
|
||||
import PageWrapper from '../../../../../../components/PageWrapper';
|
||||
import { asset } from '../../../../../../core/blitzkit/asset';
|
||||
import { tankDefinitions } from '../../../../../../core/blitzkit/tankDefinitions';
|
||||
import { TIER_ROMAN_NUMERALS } from '../../../../../../core/blitzkit/tankDefinitions/constants';
|
||||
import { useDuel } from '../../../../../../stores/duel';
|
||||
|
||||
function Arrow() {
|
||||
export function TreeArrow({ style, ...props }: ComponentProps<typeof Text>) {
|
||||
return (
|
||||
<Text
|
||||
color="gray"
|
||||
style={{
|
||||
flex: 1,
|
||||
...style,
|
||||
}}
|
||||
{...props}
|
||||
>
|
||||
<Flex
|
||||
style={{
|
||||
@@ -130,7 +132,7 @@ export function TechTreeSection() {
|
||||
))}
|
||||
</Flex>
|
||||
|
||||
<Arrow />
|
||||
<TreeArrow />
|
||||
</>
|
||||
)}
|
||||
|
||||
@@ -160,7 +162,7 @@ export function TechTreeSection() {
|
||||
|
||||
{tank.successors && (
|
||||
<>
|
||||
<Arrow />
|
||||
<TreeArrow />
|
||||
|
||||
<Flex
|
||||
wrap="wrap"
|
||||
|
||||
Reference in new issue
Block a user