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 (
<div>
<Home/>
<Experiences/>
<Footer/>
</div>
@@ -4,7 +4,6 @@ import React, {useEffect, useState} from "react";
function Experiences() {
const [experiences, setExperiences] = useState([]);
const [experienceTasks, setExperienceTasks] = useState([]);
const [error, setError] = useState(null);
useEffect(() => {
@@ -31,9 +30,13 @@ function Experiences() {
<section id="experiences-section">
<h1 className="section-title">Experiences</h1>
<div className="experiences-container">
{experiences.map((exp) => (
<SingleExperience experience={exp}/>
))}
{experiences ? (
experiences.map((exp) => (
<SingleExperience experience={exp}/>
))
) : (
<p>Chargement...</p>
)}
</div>
</section>
);