Skip to content

Commit 275ce6a

Browse files
committed
Pass all itemsCrafted props to Crafting component
Updated Achievements to spread itemsCrafted props into the Crafting component for better prop handling. Also added an optional 'known' property to generalFormatedItemType in displayDataTypes.ts.
1 parent aa9c7bc commit 275ce6a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/Components/Achievements/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const Achievements = ({
6363
</TabPanel>
6464
<TabPanel>
6565
<section className="achievement-container">
66-
<Crafting itemsCrafted={itemsCrafted}></Crafting>
66+
<Crafting {...itemsCrafted}></Crafting>
6767
</section>
6868
</TabPanel>
6969
<TabPanel>

src/types/displayDataTypes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export type generalFormatedItemType = {
5656
name: string;
5757
link?: string;
5858
knownDish?: boolean;
59+
known?: boolean;
5960
times?: number;
6061
shipped?: number;
6162
fished?: boolean;

0 commit comments

Comments
 (0)