diff --git a/Site Web/client/src/actions/post.actions.js b/Site Web/client/src/actions/post.actions.js index 46940b94..999a1d75 100644 --- a/Site Web/client/src/actions/post.actions.js +++ b/Site Web/client/src/actions/post.actions.js @@ -49,11 +49,11 @@ export const addPost = (data) => { .post(`${process.env.REACT_APP_API_URL}api/post/`, data) .then((res) => { console.log(data,"test"); - if (res.data.errors) { + /* if (res.data.errors) { dispatch(setPostError({payload: res.data.errors })); } else { dispatch(setPostError({payload: "" })); - } + }*/ }); }; }; diff --git a/Site Web/client/src/components/AjoutLien.js b/Site Web/client/src/components/AjoutLien.js index 4ef8e33f..c7d6ff27 100644 --- a/Site Web/client/src/components/AjoutLien.js +++ b/Site Web/client/src/components/AjoutLien.js @@ -19,13 +19,14 @@ const AjoutLien = () => { dispatch(getPosts()); cancelPost(); setDisplayAdd(false); - window.location.reload(); + /* window.location.reload();*/ }else { alert("Veuillez compléter tous les champs.") } else{ alert("Ce n'est pas lien!") } + }; diff --git a/Site Web/client/src/components/Log/Inscription.js b/Site Web/client/src/components/Log/Inscription.js index 251cb9b5..afc04514 100644 --- a/Site Web/client/src/components/Log/Inscription.js +++ b/Site Web/client/src/components/Log/Inscription.js @@ -1,4 +1,5 @@ import React, { useState } from 'react'; +import { NavLink, redirect} from "react-router-dom"; import axios from "axios"; import Connexion from "./Connexion"; @@ -52,13 +53,16 @@ const Inscription = () => { .catch((err) => console.log(err)); } }; - + /* const showText=()=>{ + const timeoutID =setTimeout(()=>{document.getElementById("textSucces").style.visibility="visible"},3000); + clearTimeout(timeoutID); + }; + */ return ( <> {formSubmit ? ( -
- -
+ + ) : (
diff --git a/Site Web/client/src/styles/pages/_homenavigation.scss b/Site Web/client/src/styles/pages/_homenavigation.scss index ca3331f7..88f06bd8 100644 --- a/Site Web/client/src/styles/pages/_homenavigation.scss +++ b/Site Web/client/src/styles/pages/_homenavigation.scss @@ -153,10 +153,21 @@ input[type="submit"]:hover, .buttonTEL:hover{ } .enregistrementReussi{ - display: flex; - flex-direction: column; + width: 100%; } .formulaire{ width: 35%; -} \ No newline at end of file +} + +/* +#textSucces{ + position: absolute; + width:100%; + height: 100%; + background-color: $color-5; + opacity: 80%; + color: $color-8; + visibility: hidden; +} +*/