diff --git a/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx b/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx index 426af6b45..160c93d0c 100644 --- a/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx +++ b/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx @@ -7,6 +7,7 @@ import { Slider, Text, TextField, + Tooltip, } from '@radix-ui/themes'; import { debounce } from 'lodash'; import { Fragment, use, useEffect, useRef, useState } from 'react'; @@ -144,32 +145,34 @@ export function Characteristics() { {gun.shells.map((thisShell, shellIndex) => ( - { - mutateDuel((draft) => { - draft.protagonist.shell = thisShell; - }); - }} - > - {thisShell.name} - + + { + mutateDuel((draft) => { + draft.protagonist.shell = thisShell; + }); + }} + > + {thisShell.name} + + ))} diff --git a/src/app/tools/tankopedia/[id]/components/Model/MetaSection.tsx b/src/app/tools/tankopedia/[id]/components/Model/MetaSection.tsx index 767e6f7b9..ebf01a638 100644 --- a/src/app/tools/tankopedia/[id]/components/Model/MetaSection.tsx +++ b/src/app/tools/tankopedia/[id]/components/Model/MetaSection.tsx @@ -16,8 +16,8 @@ export function MetaSection() { typeof tank.price === 'number' ? 'credits' : tank.price.type; const salePrice = 0.5 * rawPrice; const purchasePrice = rawPrice; - let worthSelling: boolean; const ClassIcon = classIcons[tank.class]; + let worthSelling: boolean; if (priceType === 'gold') { worthSelling = tank.tier <= 6 || purchasePrice - salePrice <= 500;