Skip to content

Commit 66a1513

Browse files
fix: resolve TypeScript build errors in CommunityPresenceSection (#15)
* fix: resolve TypeScript build errors in CommunityPresenceSection - Remove unused 'logoImage' import - Add missing 'logo' property to ECOSYSTEM_LINKS objects This fixes the deployment CI failure caused by strict TypeScript settings flagging: - Unused variables (TS6133) - Missing object properties (TS2339) * Update src/components/sections/CommunityPresenceSection.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 7679e70 commit 66a1513

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/components/sections/CommunityPresenceSection.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@ import Button from '../Button';
33
import '../../styles/CommunityPresenceSection.css';
44
import { FaGithub, FaYoutube, FaFacebook, FaBlog } from 'react-icons/fa';
55

6-
const COMMUNITY_LINKS = [
6+
interface Link {
7+
name: string;
8+
url: string;
9+
icon: React.ReactNode;
10+
category: string;
11+
}
12+
13+
const COMMUNITY_LINKS: Link[] = [
714
{
815
name: 'DevOps Visions Community Blog',
916
url: 'https://devopsvisions.github.io/',
@@ -29,7 +36,7 @@ const COMMUNITY_LINKS = [
2936
},
3037
];
3138

32-
const ECOSYSTEM_LINKS = [ {
39+
const ECOSYSTEM_LINKS: Link[] = [{
3340
name: 'Elmentor Program GitHub',
3441
url: 'https://github.com/ElmentorProgram',
3542
icon: <FaGithub />,
@@ -89,7 +96,6 @@ const CommunityPresenceSection: React.FC = () => {
8996
role="listitem"
9097
aria-label={`Visit ${link.name} - opens in new tab`}
9198
>
92-
{link.logo && <img src={link.logo} alt={`${link.name} Logo`} className="ecosystem-logo" />}
9399
<div className="platform-icon" aria-hidden="true">{link.icon}</div>
94100
<span className="platform-name">{link.name}</span>
95101
</a>

0 commit comments

Comments
 (0)