From 23463ecb0de410b29145b3f51f71097ae3aaf74e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 25 Oct 2021 13:39:41 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Add=20stargazers=20link?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/MoreProjects.jsx | 2 +- src/components/Project.jsx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/MoreProjects.jsx b/src/components/MoreProjects.jsx index 90625aa..738495f 100644 --- a/src/components/MoreProjects.jsx +++ b/src/components/MoreProjects.jsx @@ -30,7 +30,7 @@ export function MoreProjects({user, minus}) { else if(error !== null) return "Error: {error}" return `...and ${data["public_repos"] - minus} more!` }, - [data, error] + [data, error, minus] ) return ( diff --git a/src/components/Project.jsx b/src/components/Project.jsx index cce3453..74e95e2 100644 --- a/src/components/Project.jsx +++ b/src/components/Project.jsx @@ -55,11 +55,13 @@ export function Project({user, repo}) { {data["description"]}
- {data["stargazers_count"]} + + {data["stargazers_count"]} +
}, - [data, error] + [user, repo, data, error] ) return (