diff --git a/frontend/src/components/item-card/item-card.jsx b/frontend/src/components/item-card/item-card.jsx index 4433f25..d3de428 100644 --- a/frontend/src/components/item-card/item-card.jsx +++ b/frontend/src/components/item-card/item-card.jsx @@ -85,7 +85,7 @@ const ItemCard = ({ switch (purchaseState) { case 0: return ( - ); @@ -117,6 +117,7 @@ const ItemCard = ({ purchaseState={purchaseState} description={description} level={level} + finished={finished} hasProject={hasProject} prerequisites={prerequisites} syllabus={syllabus} @@ -171,7 +172,7 @@ const ItemCard = ({ {!hasBought && } {!hasBought && shouldShowFullCapacity && } {finished &&
( const MoreInfoModal = ({ visibility, onVisibilityChange, + finished, title, presenterName, cost, @@ -124,7 +125,7 @@ const MoreInfoModal = ({ {purchaseState === 0 ? ( - ) : purchaseState === 1 ? ( @@ -150,6 +151,7 @@ MoreInfoModal.propTypes = { description: PropTypes.string, onClickAddToCart: PropTypes.func, onClickRemoveFromCart: PropTypes.func, + finished: PropTypes.bool, }; export default MoreInfoModal;