Skip to content

Commit

Permalink
wrapped repo.repositoryLogo with anchor tag
Browse files Browse the repository at this point in the history
  • Loading branch information
thekbbohara committed Oct 11, 2024
1 parent e1f7257 commit 73a6173
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/[githubLogin]/components/point-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ const PointsAndRanks: React.FC<PointsAndRanksProps> = ({ pointsAndRanks }) => {
{pointsAndRanks.map((repo, index) => (
<div key={repo.id} className="space-y-1">
{repo.repositoryLogo && (
<Image src={repo.repositoryLogo} height={25} width={25} alt={`${repo.repositoryName} logo`} />
<a href={`https://github.com/${repo.repositoryName}`}>
<Image src={repo.repositoryLogo} height={25} width={25} alt={`${repo.repositoryName} logo`} />
</a>
)}
<h3 className="font-semibold">{repo.repositoryName}</h3>
<p>points: {repo.points}</p>
Expand Down

0 comments on commit 73a6173

Please sign in to comment.