Fix LeftPanel.tsx to use modular stores instead of legacy useGameStore
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m22s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m22s
- Added useCraftingStore import for crafting progress fields - Changed spireMode/enterSpireMode to useCombatStore - Changed currentStudyTarget to useSkillStore - Changed crafting progress fields to useCraftingStore - Added useCraftingStore export to stores/index.ts - Kept useGameStore only for gatherMana, day, hour
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
'use client';
|
||||
|
||||
import { EquipmentSlot } from '@/lib/game/data/equipment';
|
||||
import type { GameStore } from '@/lib/game/types';
|
||||
// GameStore import removed - not used
|
||||
import { ActionButton } from '@/components/ui/action-button';
|
||||
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';
|
||||
import { X } from 'lucide-react';
|
||||
|
||||
interface EquipmentControlsProps {
|
||||
store: GameStore;
|
||||
onUnequip: (slot: EquipmentSlot) => void;
|
||||
onDelete: (instanceId: string, name: string) => void;
|
||||
selectedSlot: EquipmentSlot | null;
|
||||
@@ -17,7 +16,6 @@ interface EquipmentControlsProps {
|
||||
}
|
||||
|
||||
export function EquipmentControls({
|
||||
store,
|
||||
onUnequip,
|
||||
onDelete,
|
||||
selectedSlot,
|
||||
|
||||
Reference in New Issue
Block a user