mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: i forgot
This commit is contained in:
1 parent
46719cd32a
commit
6753d8a073
1 file changed
+24
-25
@@ -1,7 +1,6 @@
|
|||||||
import { ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';
|
import { ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';
|
||||||
import { Flex, Heading } from '@radix-ui/themes';
|
import { Flex, Heading } from '@radix-ui/themes';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import * as styles from '../../../page.css';
|
|
||||||
import { Camouflage } from './components/Camouflage';
|
import { Camouflage } from './components/Camouflage';
|
||||||
import { Consumables } from './components/Consumables';
|
import { Consumables } from './components/Consumables';
|
||||||
import { Crew } from './components/Crew';
|
import { Crew } from './components/Crew';
|
||||||
@@ -15,30 +14,8 @@ export function Characteristics() {
|
|||||||
const [statsVisible, setStatsVisible] = useState(true);
|
const [statsVisible, setStatsVisible] = useState(true);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex className={styles.characteristics}>
|
<Flex gap="8" wrap="wrap">
|
||||||
<div className={styles.configuration}>
|
<Flex style={{ flex: 1, minWidth: 320 }} direction="column" gap="4">
|
||||||
<Heading
|
|
||||||
onClick={() => setConfigureVisible((state) => !state)}
|
|
||||||
style={{
|
|
||||||
cursor: 'pointer',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Configure {configureVisible ? <ChevronDownIcon /> : <ChevronUpIcon />}
|
|
||||||
</Heading>
|
|
||||||
|
|
||||||
{configureVisible && (
|
|
||||||
<Flex direction="column" gap="4">
|
|
||||||
<Modules />
|
|
||||||
<Equipments />
|
|
||||||
<Crew />
|
|
||||||
<Consumables />
|
|
||||||
<Provisions />
|
|
||||||
<Camouflage />
|
|
||||||
</Flex>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<Flex style={{ flex: 1 }} wrap="wrap" direction="column" gap="4">
|
|
||||||
<Heading
|
<Heading
|
||||||
onClick={() => setStatsVisible((state) => !state)}
|
onClick={() => setStatsVisible((state) => !state)}
|
||||||
style={{
|
style={{
|
||||||
@@ -130,6 +107,28 @@ export function Characteristics() {
|
|||||||
</Flex>
|
</Flex>
|
||||||
)}
|
)}
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
|
<Flex style={{ flex: 1, minWidth: 320 }} direction="column" gap="4">
|
||||||
|
<Heading
|
||||||
|
onClick={() => setConfigureVisible((state) => !state)}
|
||||||
|
style={{
|
||||||
|
cursor: 'pointer',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Configure {configureVisible ? <ChevronDownIcon /> : <ChevronUpIcon />}
|
||||||
|
</Heading>
|
||||||
|
|
||||||
|
{configureVisible && (
|
||||||
|
<Flex direction="column" gap="4">
|
||||||
|
<Modules />
|
||||||
|
<Equipments />
|
||||||
|
<Crew />
|
||||||
|
<Consumables />
|
||||||
|
<Provisions />
|
||||||
|
<Camouflage />
|
||||||
|
</Flex>
|
||||||
|
)}
|
||||||
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user