From 553ee3972881b61e70c3b5708cdad69b39a58891 Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Wed, 20 Aug 2025 16:24:37 +0200 Subject: [PATCH] Refactor TechIcon component for improved readability - Split conditional check for Font Awesome icon into multiple lines for better clarity. - Maintained existing functionality while enhancing code maintainability. --- components/icons/tech-icon.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/icons/tech-icon.tsx b/components/icons/tech-icon.tsx index 4a3d8fd..1f1fa60 100644 --- a/components/icons/tech-icon.tsx +++ b/components/icons/tech-icon.tsx @@ -233,7 +233,11 @@ export const TechIcon: React.FC = ({ } // Font Awesome icon (IconDefinition has prefix, iconName, and icon properties) - if (typeof IconComponent === "object" && "prefix" in IconComponent && "iconName" in IconComponent) { + if ( + typeof IconComponent === "object" && + "prefix" in IconComponent && + "iconName" in IconComponent + ) { return (