fix: update StatsTab, DebugTab and all child components to use modular stores
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m42s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m42s
- Updated StatsTab to use hooks directly (useSkillStore, usePrestigeStore, etc.) - Updated DebugTab to use hooks directly - Updated all debug child components (GameStateDebug, SkillDebug, AttunementDebug, etc.) - Updated all stats child components (ManaStatsSection, CombatStatsSection, etc.) - Fixed UpgradeEffectsSection.tsx syntax errors - Updated page.tsx to not pass store prop to StatsTab and DebugTab - All components now use modular stores directly instead of receiving store prop
This commit is contained in:
@@ -1,31 +1,26 @@
|
||||
'use client';
|
||||
|
||||
import type { GameStore } from '@/lib/game/store';
|
||||
import { GameStateDebug } from '@/components/game/debug/GameStateDebug';
|
||||
import {
|
||||
GameStateDebug,
|
||||
SkillDebug,
|
||||
ElementDebug,
|
||||
AttunementDebug,
|
||||
ElementDebug,
|
||||
GolemDebug,
|
||||
PactDebug
|
||||
} from '@/components/game/debug';
|
||||
|
||||
interface DebugTabProps {
|
||||
store: GameStore;
|
||||
}
|
||||
|
||||
export function DebugTab({ store }: DebugTabProps) {
|
||||
export function DebugTab() {
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<GameStateDebug store={store} />
|
||||
<GameStateDebug />
|
||||
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
<AttunementDebug store={store} />
|
||||
<ElementDebug store={store} />
|
||||
<AttunementDebug />
|
||||
<ElementDebug />
|
||||
</div>
|
||||
|
||||
<SkillDebug store={store} />
|
||||
<GolemDebug store={store} />
|
||||
<SkillDebug />
|
||||
<GolemDebug />
|
||||
<PactDebug />
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user