Fixing the link issue on contributors page. Now the redirection occurs only when link exists. #150

Closed
r2shuai wants to merge 4 commits from richard-shuai/contribution-link into main
1 changed files with 7 additions and 3 deletions
Showing only changes of commit 2c966d130d - Show all commits

View File

@ -27,9 +27,13 @@ export function ContributorGroup({ group }: ContributorGroupProps) {
.map((d, idx) => {
return (
<li key={idx}>
<a href={d.link} target="_blank" rel="noreferrer">
{d.name}
</a>
{d.link ? (
<a href={d.link} target="_blank" rel="noreferrer">
{d.name}
</a>
) : (
<a href="#">{d.name}</a>
)}
</li>
);
})}