mirror of
https://github.com/Steffo99/steffoweb.git
synced 2024-11-24 09:04:30 +00:00
🔧 Add stargazers link
This commit is contained in:
parent
eea825074f
commit
23463ecb0d
2 changed files with 5 additions and 3 deletions
|
@ -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 (
|
||||
|
|
|
@ -55,11 +55,13 @@ export function Project({user, repo}) {
|
|||
{data["description"]}
|
||||
</div>
|
||||
<div className={Style.Stars}>
|
||||
<FontAwesomeIcon icon={faStar}/> {data["stargazers_count"]}
|
||||
<Anchor href={`https://github.com/${user}/${repo}/stargazers`}>
|
||||
<FontAwesomeIcon icon={faStar}/> {data["stargazers_count"]}
|
||||
</Anchor>
|
||||
</div>
|
||||
</>
|
||||
},
|
||||
[data, error]
|
||||
[user, repo, data, error]
|
||||
)
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue