From e4631b3b6f1aecc56ff2c4462c48c0e15e6523c7 Mon Sep 17 00:00:00 2001
From: Noan07 <84435602+Noan07@users.noreply.github.com>
Date: Tue, 3 Jan 2023 16:01:13 +0100
Subject: [PATCH] Visuel post
---
.../components/Configurations/ConfigurationDuProfil.js | 7 +++++--
Site Web/client/src/components/Navbar.js | 4 ++--
Site Web/client/src/components/Post/Post.js | 6 +++---
Site Web/client/src/components/Routes/index.js | 6 +++---
Site Web/client/src/pages/Configuration.js | 7 ++++---
Site Web/client/src/styles/component/_navbar.scss | 8 +++++++-
Site Web/client/src/styles/component/_newPoste.scss | 4 ++++
Site Web/client/src/styles/pages/_configuration.scss | 4 ++++
8 files changed, 32 insertions(+), 14 deletions(-)
diff --git a/Site Web/client/src/components/Configurations/ConfigurationDuProfil.js b/Site Web/client/src/components/Configurations/ConfigurationDuProfil.js
index e95586f0..b6b71f4e 100644
--- a/Site Web/client/src/components/Configurations/ConfigurationDuProfil.js
+++ b/Site Web/client/src/components/Configurations/ConfigurationDuProfil.js
@@ -5,7 +5,10 @@ import { NavLink } from "react-router-dom";
const ConfigurationDuProfil = ()=>{
- const userData = useSelector((state) => state.userReducer)
+ const userData = useSelector((state) => state.user.user);
+ const [pseudo, setPseudo] = useState('');
+ const [nomUtilisateur, setNomUtilisateur] = useState('');
+
return(
diff --git a/Site Web/client/src/components/Navbar.js b/Site Web/client/src/components/Navbar.js
index 1df25f03..9e461a92 100644
--- a/Site Web/client/src/components/Navbar.js
+++ b/Site Web/client/src/components/Navbar.js
@@ -116,10 +116,10 @@ const Navbar = () => {
- setDisplayAdd(true)} className="navbar-link">
+
Paramètre
-
+
diff --git a/Site Web/client/src/components/Post/Post.js b/Site Web/client/src/components/Post/Post.js
index 296a3002..29b8632a 100644
--- a/Site Web/client/src/components/Post/Post.js
+++ b/Site Web/client/src/components/Post/Post.js
@@ -24,10 +24,10 @@ const LinkPreview = ({ link }) => {
-
+ {/*
{link}
- {preview.description}
+ {preview.description}
*/}
);
};
@@ -75,7 +75,7 @@ const Post = ( { post } ) => {
-
+ {/*
*/}
{post.message}
diff --git a/Site Web/client/src/components/Routes/index.js b/Site Web/client/src/components/Routes/index.js
index f6a89ccb..c4210b41 100644
--- a/Site Web/client/src/components/Routes/index.js
+++ b/Site Web/client/src/components/Routes/index.js
@@ -5,17 +5,17 @@ import Home from '../../pages/Home.js';
import Trends from '../../pages/Trends.js';
import Discover from '../../pages/Discover.js';
import Profil from '../../pages/Profil.js';
-import Configuration from '../../pages/Configuration';
+import Configuration from '../../pages/Configuration.js';
const index = () => {
return (
} />
- } />
+ } />
} />
} />
- } />
+ {/* } /> */}
} />
}/>
diff --git a/Site Web/client/src/pages/Configuration.js b/Site Web/client/src/pages/Configuration.js
index fcc66d6b..620be1d6 100644
--- a/Site Web/client/src/pages/Configuration.js
+++ b/Site Web/client/src/pages/Configuration.js
@@ -4,7 +4,8 @@ import ConfigurationDuProfil from '../components/Configurations/ConfigurationDuP
import ConfigurationDuCompte from '../components/Configurations/ConfigurationDuCompte.js';
import PolitiqueDeConfidentialite from '../components/Configurations/PolitiqueDeConfidentialite';
import Navbar from '../components/Navbar';
-function Configuration(){
+
+const Configuration = () => {
const [ConfigurationCompte, setConfigurationDuCompte] = useState(false);
const [ConfigurationProfil, setConfigurationDuProfil] = useState(true);
@@ -27,7 +28,7 @@ function Configuration(){
};
return(
- <>
+