update fetch url to match new api prefix
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user