Skip to content

Commit

Permalink
Corrected redirection to Github and Nest profile
Browse files Browse the repository at this point in the history
  • Loading branch information
KaranNegi20Feb committed Mar 2, 2025
1 parent a7cb6ad commit d3ef8df
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions frontend/src/api/queries/projectQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ export const GET_PROJECT_DATA = gql`
title
commentsCount
createdAt
url
author {
avatarUrl
login
name
url
}
}
recentReleases {
Expand Down
9 changes: 7 additions & 2 deletions frontend/src/components/CardDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,13 @@ const DetailsCard = ({
<div className="mt-2 flex items-center text-sm text-gray-600 dark:text-gray-400">
<FontAwesomeIcon icon={faCalendar} className="mr-2 h-4 w-4" />
<span>{formatDate(item.createdAt)}</span>
<FontAwesomeIcon icon={faFileCode} className="ml-4 mr-2 h-4 w-4" />
<span>{item.commentsCount} comments</span>
{item.commentsCount && (
<>
<FontAwesomeIcon icon={faFileCode} className="ml-4 mr-2 h-4 w-4" />
<span>{item.commentsCount} comments</span>
</>
)}

</div>
)}
/>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ItemCardList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const ItemCardList = ({
className="mr-2 h-6 w-6 rounded-full"
/>
<a
href={item?.author?.url}
href={`/community/users/${item?.author?.login}`}
className="text-blue-400 hover:underline dark:text-blue-200"
>
{item?.author?.name || item?.author?.login}
Expand Down

0 comments on commit d3ef8df

Please sign in to comment.