update fetch url to match new api prefix

This commit is contained in:
2026-06-15 11:41:16 +02:00
parent 37a113fbf6
commit 1b675fdd3e
2 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ function HomePage() {
return ( return (
<div> <div>
<Home/> <Home/>
<Experiences/>
<Footer/> <Footer/>
</div> </div>
@@ -4,7 +4,6 @@ import React, {useEffect, useState} from "react";
function Experiences() { function Experiences() {
const [experiences, setExperiences] = useState([]); const [experiences, setExperiences] = useState([]);
const [experienceTasks, setExperienceTasks] = useState([]);
const [error, setError] = useState(null); const [error, setError] = useState(null);
useEffect(() => { useEffect(() => {
@@ -31,9 +30,13 @@ function Experiences() {
<section id="experiences-section"> <section id="experiences-section">
<h1 className="section-title">Experiences</h1> <h1 className="section-title">Experiences</h1>
<div className="experiences-container"> <div className="experiences-container">
{experiences.map((exp) => ( {experiences ? (
experiences.map((exp) => (
<SingleExperience experience={exp}/> <SingleExperience experience={exp}/>
))} ))
) : (
<p>Chargement...</p>
)}
</div> </div>
</section> </section>
); );