add nb follower et nb abonné

pull/1/head
Bastien OLLIER 2 years ago
parent 55a6a8b3cc
commit c4fca81003

File diff suppressed because it is too large Load Diff

@ -15,7 +15,7 @@
"react-dom": "^18.2.0",
"react-redux": "^8.0.5",
"react-router-dom": "^6.4.2",
"react-scripts": "5.0.1",
"react-scripts": "^5.0.1",
"redux": "^4.2.0",
"tachyons": "^4.12.0",
"web-vitals": "^2.1.4"

@ -17,11 +17,11 @@ const Profil = () => {
<div>
<div id="blocAbonnement">
<div>
<div className="nombre">10k</div>
<div className="nombre">{userData.following.length}</div>
<div className="texteNombre">Abonnement</div>
</div>
<div>
<div className="nombre">10k</div>
<div className="nombre">{userData.followers.length}</div>
<div className="texteNombre">Abonnée</div>
</div>
</div>

@ -28,11 +28,11 @@
}
.texteNombre{
color:grey;
color:white;
}
#bandeauProfil{
background-color: aqua;
background-color: #D9D9D9;
margin-top: 50px;
}

@ -27,7 +27,7 @@ module.exports.requireAuth = (req, res, next) => {
jwt.verify(token, process.env.TOKEN_SECRET, async (err, decodedToken) => {
if (err) {
console.log(err);
res.send(200).json('no token')
res.send(500).json('no token')
} else {
console.log(decodedToken.id);
next();

@ -563,7 +563,8 @@
},
"node_modules/express": {
"version": "4.18.2",
"license": "MIT",
"resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz",
"integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==",
"dependencies": {
"accepts": "~1.3.8",
"array-flatten": "1.1.1",
@ -2245,6 +2246,8 @@
},
"express": {
"version": "4.18.2",
"resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz",
"integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==",
"requires": {
"accepts": "~1.3.8",
"array-flatten": "1.1.1",

Loading…
Cancel
Save