mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: remove caret icons
This commit is contained in:
1 parent
519558dd28
commit
ca111510f6
1 file changed
+1
-36
@@ -1,9 +1,4 @@
|
|||||||
import {
|
import { LoopIcon, TrashIcon } from '@radix-ui/react-icons';
|
||||||
CaretLeftIcon,
|
|
||||||
CaretRightIcon,
|
|
||||||
LoopIcon,
|
|
||||||
TrashIcon,
|
|
||||||
} from '@radix-ui/react-icons';
|
|
||||||
import { Dialog, Flex, IconButton } from '@radix-ui/themes';
|
import { Dialog, Flex, IconButton } from '@radix-ui/themes';
|
||||||
import { use, useState } from 'react';
|
import { use, useState } from 'react';
|
||||||
import { provisionDefinitions } from '../../../../core/blitzkrieg/provisionDefinitions';
|
import { provisionDefinitions } from '../../../../core/blitzkrieg/provisionDefinitions';
|
||||||
@@ -27,21 +22,6 @@ export function TankControl({ index, tank, members }: TankControlProps) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex gap="2" justify="center" style={{ width: '100%' }}>
|
<Flex gap="2" justify="center" style={{ width: '100%' }}>
|
||||||
{index !== 0 && (
|
|
||||||
<IconButton
|
|
||||||
variant="ghost"
|
|
||||||
onClick={() => {
|
|
||||||
mutateCompareTemporary((draft) => {
|
|
||||||
const item = draft.members[index];
|
|
||||||
draft.members.splice(index, 1);
|
|
||||||
draft.members.splice(index - 1, 0, item);
|
|
||||||
draft.sorting = undefined;
|
|
||||||
});
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<CaretLeftIcon />
|
|
||||||
</IconButton>
|
|
||||||
)}
|
|
||||||
<IconButton
|
<IconButton
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@@ -88,21 +68,6 @@ export function TankControl({ index, tank, members }: TankControlProps) {
|
|||||||
</Flex>
|
</Flex>
|
||||||
</Dialog.Content>
|
</Dialog.Content>
|
||||||
</Dialog.Root>
|
</Dialog.Root>
|
||||||
{index !== members.length - 1 && (
|
|
||||||
<IconButton
|
|
||||||
variant="ghost"
|
|
||||||
onClick={() => {
|
|
||||||
mutateCompareTemporary((draft) => {
|
|
||||||
const item = draft.members[index];
|
|
||||||
draft.members.splice(index, 1);
|
|
||||||
draft.members.splice(index + 1, 0, item);
|
|
||||||
draft.sorting = undefined;
|
|
||||||
});
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<CaretRightIcon />
|
|
||||||
</IconButton>
|
|
||||||
)}
|
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user