correction error messages
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { useEffect } from "react";
|
||||
import { json, useParams } from "react-router-dom";
|
||||
import { useParams } from "react-router-dom";
|
||||
import { useState } from "react";
|
||||
|
||||
const MorceauDetail = () => {
|
||||
@@ -18,11 +18,11 @@ const MorceauDetail = () => {
|
||||
}
|
||||
fetchData();
|
||||
setIsLoading(false);
|
||||
},[]);
|
||||
});
|
||||
|
||||
function renderPrice(price, newPrice, status) {
|
||||
if (price !== undefined) {
|
||||
if (status != 3 && status != 4) {
|
||||
if (status !== 3 && status !== 4) {
|
||||
return (
|
||||
<h3 className="detail-price">
|
||||
{price.toFixed(2).toString().replace(".", ",")} $ CA
|
||||
@@ -99,7 +99,7 @@ const MorceauDetail = () => {
|
||||
|
||||
<div className="detail-container">
|
||||
<div className="detail-container-left">
|
||||
<img className="detail-image" src={`/images/${item.imageName}.jpg`} />
|
||||
<img className="detail-image" alt="" src={`/images/${item.imageName}.jpg`} />
|
||||
<p className="detail-description">{item.description}</p>
|
||||
</div>
|
||||
<div className="detail-container-right">
|
||||
|
Reference in New Issue
Block a user