Skip to content

Commit

Permalink
homepage: remove redundant conditional check (#1063)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Sutu <[email protected]>
  • Loading branch information
SutuSebastian and Sebastian Sutu authored Oct 13, 2023
1 parent 624932a commit a776d51
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -874,18 +874,17 @@ const ContributorsSection: FC<ContributorsSectionProps> = ({ contributors }) =>
</div>
<div className="flex max-w-5xl flex-col gap-3 px-4 lg:px-8">
<div className="flex flex-wrap items-center justify-center gap-3">
{contributors &&
contributors.map((contributor) => (
<Tooltip key={contributor.id} content={contributor.login}>
<Link href={contributor.html_url} rel="nofollow noreferrer noopener" target="_blank">
<img
src={contributor.avatar_url}
alt={`${contributor.login} avatar`}
className="h-10 w-10 rounded-full bg-gray-100 text-gray-600 dark:bg-gray-600 dark:text-gray-300 sm:h-12 sm:w-12 lg:h-16 lg:w-16"
/>
</Link>
</Tooltip>
))}
{contributors.map((contributor) => (
<Tooltip key={contributor.id} content={contributor.login}>
<Link href={contributor.html_url} rel="nofollow noreferrer noopener" target="_blank">
<img
src={contributor.avatar_url}
alt={`${contributor.login} avatar`}
className="h-10 w-10 rounded-full bg-gray-100 text-gray-600 dark:bg-gray-600 dark:text-gray-300 sm:h-12 sm:w-12 lg:h-16 lg:w-16"
/>
</Link>
</Tooltip>
))}
</div>
</div>
<div className="flex w-full max-w-5xl flex-row items-center justify-between lg:px-4">
Expand Down

1 comment on commit a776d51

@vercel
Copy link

@vercel vercel bot commented on a776d51 Oct 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.