Closed Beznet closed 4 years ago
Create a component that renders a dropdown for each item on the /results page to sort between 'still owned', 'donate' and 'sell'
Default value when an item is added is "owned" so only 2 values are in the dropdown - Sold and Donated
I re-used the useItemState hook to update the result property for each item upon dropdown.
useItemState
result
Create a component that renders a dropdown for each item on the /results page to sort between 'still owned', 'donate' and 'sell'