basic page de détail
This commit is contained in:
@@ -54,9 +54,9 @@ function renderStatus(statusCode) {
|
||||
}
|
||||
}
|
||||
|
||||
function renderPrice(price, newPrice) {
|
||||
function renderPrice(price, newPrice, status) {
|
||||
|
||||
if (newPrice < 0) {
|
||||
if (status != 3 && status != 4) {
|
||||
return (
|
||||
<Card.Text className="item-price-container">
|
||||
<span className="item-price">
|
||||
@@ -95,7 +95,7 @@ const Item = ({ imageUrl, name, price, newPrice, status }) => {
|
||||
{renderStatus(status)}
|
||||
</div>
|
||||
<div>
|
||||
{renderPrice(price, newPrice)}
|
||||
{renderPrice(price, newPrice, status)}
|
||||
</div>
|
||||
|
||||
</Card.Body>
|
||||
|
Reference in New Issue
Block a user