diff --git a/src/components/game/CommandCard/CommandGrid.tsx b/src/components/game/CommandCard/CommandGrid.tsx index d4241f21..9852944e 100644 --- a/src/components/game/CommandCard/CommandGrid.tsx +++ b/src/components/game/CommandCard/CommandGrid.tsx @@ -26,7 +26,7 @@ function CommandGridInner({ plasma, supply, maxSupply, - hoveredCmd, + hoveredCmd: _hoveredCmd, setHoveredCmd, }: CommandGridProps) { // Handle clicks on disabled buttons to play resource alerts diff --git a/src/components/game/CommandCard/hooks/useUnitCommands.ts b/src/components/game/CommandCard/hooks/useUnitCommands.ts index 280ac349..238ee43e 100644 --- a/src/components/game/CommandCard/hooks/useUnitCommands.ts +++ b/src/components/game/CommandCard/hooks/useUnitCommands.ts @@ -1,10 +1,8 @@ import { useGameStore } from '@/store/gameStore'; import { getLocalPlayerId } from '@/store/gameSetupStore'; import { getWorkerBridge, getRenderStateAdapter } from '@/engine/workers'; -import { UNIT_DEFINITIONS } from '@/data/units/dominion'; import { BUILDING_DEFINITIONS } from '@/data/buildings/dominion'; import { WALL_DEFINITIONS } from '@/data/buildings/walls'; -import { getAttackTypeText } from '@/utils/commandIcons'; import { CommandButtonData, MenuMode } from '../types'; import { BASIC_BUILDINGS, ADVANCED_BUILDINGS, WALL_BUILDINGS } from '../constants';