diff --git a/src/app/tools/tankopedia/[id]/components/AntagonistBar.tsx b/src/app/tools/tankopedia/[id]/components/AntagonistBar.tsx index 88672ce5c..8a46a2ee9 100644 --- a/src/app/tools/tankopedia/[id]/components/AntagonistBar.tsx +++ b/src/app/tools/tankopedia/[id]/components/AntagonistBar.tsx @@ -1,13 +1,5 @@ import { Cross1Icon, ShuffleIcon } from '@radix-ui/react-icons'; -import { - Button, - Card, - Dialog, - Flex, - Heading, - Tabs, - Tooltip, -} from '@radix-ui/themes'; +import { Button, Card, Dialog, Flex, Heading, Tabs } from '@radix-ui/themes'; import { useState } from 'react'; import { ModuleButton } from '../../../../../components/ModuleButtons/ModuleButton'; import { ShellButton } from '../../../../../components/ModuleButtons/ShellButton'; @@ -169,61 +161,51 @@ export function AntagonistBar({ floating }: AntagonistBarProps) { {antagonist.tank.turrets.map((turret, index) => ( - - { - mutateDuel((draft) => { - draft.antagonist!.turret = turret; - draft.antagonist!.gun = - turret.guns.at(-1)!; - draft.antagonist!.shell = - draft.antagonist!.gun.shells[0]; - }); - mutateTankopediaTemporary((draft) => { - draft.shot = undefined; - }); - }} - selected={ - antagonist.turret.id === turret.id - } - discriminator={ - TIER_ROMAN_NUMERALS[turret.tier] - } - module="turret" - /> - + { + mutateDuel((draft) => { + draft.antagonist!.turret = turret; + draft.antagonist!.gun = + turret.guns.at(-1)!; + draft.antagonist!.shell = + draft.antagonist!.gun.shells[0]; + }); + mutateTankopediaTemporary((draft) => { + draft.shot = undefined; + }); + }} + selected={antagonist.turret.id === turret.id} + discriminator={ + TIER_ROMAN_NUMERALS[turret.tier] + } + module="turret" + /> ))} {antagonist.turret.guns.map((gun, index) => ( - - { - mutateDuel((draft) => { - draft.antagonist!.gun = gun; - draft.antagonist!.shell = gun.shells[0]; - }); - }} - selected={antagonist.gun.id === gun.id} - discriminator={ - TIER_ROMAN_NUMERALS[gun.tier] - } - module="gun" - /> - + { + mutateDuel((draft) => { + draft.antagonist!.gun = gun; + draft.antagonist!.shell = gun.shells[0]; + }); + }} + selected={antagonist.gun.id === gun.id} + discriminator={TIER_ROMAN_NUMERALS[gun.tier]} + module="gun" + /> ))}