Skip to content

Commit 631d12e

Browse files
committed
Update Cooking tab to use cookingData props
Replaces the cookedItems prop with cookingData and updates the Cooking component to receive its props via spread. This change ensures the Cooking tab receives the correct data structure.
1 parent f10488e commit 631d12e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Components/Achievements/Achievements.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const Achievements = ({
2424
professions,
2525
shippedItems,
2626
cropsShipped,
27-
cookedItems,
27+
cookingData,
2828
museumCollection,
2929
availableSpecialRequests,
3030
fishCaught,
@@ -58,7 +58,7 @@ const Achievements = ({
5858
</TabList>
5959
<TabPanel>
6060
<section className="achievement-container">
61-
<Cooking cookedItems={cookedItems}></Cooking>
61+
<Cooking {...cookingData} ></Cooking>
6262
</section>
6363
</TabPanel>
6464
<TabPanel>

0 commit comments

Comments
 (0)