Skip to content

Commit 3c4316a

Browse files
authored
fix: index community sdks (#12745)
1 parent a5ef1f8 commit 3c4316a

File tree

1 file changed

+10
-18
lines changed
  • src/components/communitySupportedPlatforms

1 file changed

+10
-18
lines changed

src/components/communitySupportedPlatforms/index.tsx

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Image from 'next/image';
2-
import Link from 'next/link';
32

43
import {ExternalLink} from '../externalLink';
54

@@ -110,31 +109,24 @@ const CommunityPlatforms = [
110109

111110
export function CommunitySupportedPlatforms() {
112111
return (
113-
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
112+
<ul className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
114113
{CommunityPlatforms.map(platform => (
115-
<Link
116-
href={platform.url}
117-
key={platform.name}
118-
style={{
119-
textDecoration: 'none',
120-
color: 'var(--foreground) !important',
121-
}}
122-
>
123-
<div className="flex gap-2 items-center">
114+
<li key={platform.name} style={{listStyle: 'none', padding: '0', margin: '0'}}>
115+
<ExternalLink
116+
href={platform.url}
117+
className="flex gap-2 items-center !no-underline"
118+
>
124119
<Image
125120
src={platform.icon.src}
126121
width={20}
127122
height={20}
128123
alt={platform.name}
129124
className="!border-none !shadow-none"
130125
/>
131-
<div className="flex space-x-1">
132-
<span className="text-[var(--accent)]">{platform.name}</span>
133-
<ExternalLink href={platform.url} />
134-
</div>
135-
</div>
136-
</Link>
126+
<span className="text-[var(--accent)]">{platform.name}</span>
127+
</ExternalLink>
128+
</li>
137129
))}
138-
</div>
130+
</ul>
139131
);
140132
}

0 commit comments

Comments
 (0)