Skip to content

Commit

Permalink
Merge pull request #42 from the-collab-lab/gb-mark-purchased-fixes
Browse files Browse the repository at this point in the history
Add missing props for issue 9
  • Loading branch information
granolagabrielle authored Sep 10, 2024
2 parents 7901aeb + 282295c commit eb4fced
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/views/List.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ export function List({ data }) {
</form>
<ul>
{filteredItems.map((item) => {
return <ListItem key={item.id} name={item.name} />;
return (
<ListItem
key={item.id}
name={item.name}
itemId={item.id}
purchaseTimestamp={item.dateLastPurchased}
/>
);
})}
</ul>
</>
Expand Down

0 comments on commit eb4fced

Please sign in to comment.