Skip to content

Commit

Permalink
Add full price class to onsale products (#20)
Browse files Browse the repository at this point in the history
* Adds .product-has-full-price to product card where product has item.full_price.
  • Loading branch information
wpalani authored Nov 3, 2022
1 parent c1e34a6 commit 3c5707e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/marketplaceItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
};

return (
<Components.Card className={ `marketplace-item marketplace-item-${ item.id }` } id={`marketplace-item-${ item.id }`}>
<Components.Card className={ `marketplace-item marketplace-item-${ item.id } ${ item.full_price ? "product-has-full-price" : ""}` } id={`marketplace-item-${ item.id }`}>
{ item.productThumbnailUrl && (
<Components.CardMedia>
<img src={ item.productThumbnailUrl } alt={ item.name + ' thumbnail' } />
Expand Down

0 comments on commit 3c5707e

Please sign in to comment.