correction error messages

This commit is contained in:
David Belisle
2022-10-18 11:55:30 -04:00
parent 2ebe676626
commit 9b186a1725
3 changed files with 54 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ const Home = () => {
<div className="home-text">
<h1 className="home-title">Les Grosses Mitaines</h1>
<h4 className="home-subtitle">(à Ginette et Monique)</h4>
<img src="/images/LesGrossesMitaines.png" className="home-img"/>
<img src="/images/LesGrossesMitaines.png" className="home-img" alt="home"/>
<br/>
<h2 className="home-description">Des produits bien commodes faits par des aînées d'expérience.</h2>
</div>

View File

@@ -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">