Skip to content

Commit 39f449e

Browse files
committed
Add 'done' property to cooking achievements
Introduced a 'done' boolean property to each cooking achievement in parseCookingItems.ts for tracking completion status. Also simplified the 'title' prop assignment in AchievementItem.tsx.
1 parent 5ceee7a commit 39f449e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/Components/common/AchievementItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const AchievementItem = ({
2222
"achieved" : "pending"}`}
2323
src={image}
2424
alt={`${achievementName}`}
25-
title={achievementHoverDesc && achievementHoverDesc}
25+
title={achievementHoverDesc}
2626
/>
2727
<div>
2828
<h3>{achievementName}:</h3>

src/Utility/Parsers/parseCookingItems.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ let CookingAchievements = [{
1616
goal: 25,
1717
image: SousChef,
1818
name: 'Cook',
19+
done: false,
1920
description: 'Cook a total of 25 dishes',
2021
hoverDesc: ''
2122
},{
2223
goal: Dishes.Dishes.length,
2324
image: GourmetChef,
2425
name: 'Cook',
26+
done: false,
2527
description: 'Cook All dishes',
2628
hoverDesc: ''
2729
}

0 commit comments

Comments
 (0)