Fix prerender error: correct component props
All checks were successful
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 2m0s
All checks were successful
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 2m0s
- Fix ComboMeter to receive combo object and isClimbing flag - Fix LootInventoryDisplay to receive correct inventory and callbacks - Fix AchievementsDisplay to receive required gameState props
This commit is contained in:
@@ -167,7 +167,7 @@ export default function ManaLoopGame() {
|
||||
togglePause={store.togglePause}
|
||||
/>
|
||||
|
||||
<ComboMeter comboCount={store.comboCount} />
|
||||
<ComboMeter combo={store.combo} isClimbing={store.currentAction === 'climb'} />
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
@@ -213,13 +213,25 @@ export default function ManaLoopGame() {
|
||||
|
||||
{/* Loot Inventory */}
|
||||
<LootInventoryDisplay
|
||||
loot={store.loot}
|
||||
onSellLoot={store.sellLoot}
|
||||
inventory={store.lootInventory}
|
||||
elements={store.elements}
|
||||
equipmentInstances={store.equipmentInstances}
|
||||
onDeleteMaterial={store.deleteMaterial}
|
||||
onDeleteEquipment={store.deleteEquipmentInstance}
|
||||
/>
|
||||
|
||||
{/* Achievements */}
|
||||
<AchievementsDisplay
|
||||
achievements={store.achievements}
|
||||
gameState={{
|
||||
maxFloorReached: store.maxFloorReached,
|
||||
totalManaGathered: store.totalManaGathered,
|
||||
signedPacts: store.signedPacts,
|
||||
totalSpellsCast: store.totalSpellsCast,
|
||||
totalDamageDealt: store.totalDamageDealt,
|
||||
totalCraftsCompleted: store.totalCraftsCompleted,
|
||||
combo: store.combo,
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user