From 78340277f23ba45b3210e10878030c97370120ce Mon Sep 17 00:00:00 2001 From: Darius BERTRAND Date: Tue, 17 Jan 2023 16:22:22 +0100 Subject: [PATCH] =?UTF-8?q?correction=20bugs=20profil=20=C2=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Site Web/client/src/pages/Profil.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Site Web/client/src/pages/Profil.js b/Site Web/client/src/pages/Profil.js index ac383372..4d4632f1 100644 --- a/Site Web/client/src/pages/Profil.js +++ b/Site Web/client/src/pages/Profil.js @@ -13,6 +13,11 @@ import MiniProfil from "../components/MiniProfil"; const Profil = () => { const { uid } = useParams(); const [userData, setUserData] = useState(null); + const [followingPopup, setFollowingPopup] = useState(false); + const [followerPopup, setFollowerPopup] = useState(false); + const [dossierPersonnels,setdossierPersonnels ] = useState(false); + const [postPersonnels,setpostPersonnels ] = useState(true); + const [postLikes,setpostLikes ] = useState(false) useEffect(() => { async function fetchData() { @@ -24,12 +29,6 @@ const Profil = () => { }, [uid]); - const [followingPopup, setFollowingPopup] = useState(false); - const [followerPopup, setFollowerPopup] = useState(false); - const [dossierPersonnels,setdossierPersonnels ] = useState(false); - const [postPersonnels,setpostPersonnels ] = useState(true); - const [postLikes,setpostLikes ] = useState(false) - const handleModals = (e) => { if (e.target.id === "DossierPersonnels") { setdossierPersonnels(true); @@ -217,13 +216,13 @@ const Profil = () => {