update fetch url to match new api prefix
This commit is contained in:
@@ -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 ? (
|
||||||
<SingleExperience experience={exp}/>
|
experiences.map((exp) => (
|
||||||
))}
|
<SingleExperience experience={exp}/>
|
||||||
|
))
|
||||||
|
) : (
|
||||||
|
<p>Chargement...</p>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user