From 6222bb29969ff2e61e347437f94d48afce8ef040 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Sun, 19 May 2024 13:41:15 +0600 Subject: [PATCH] Apply lint fix --- src/components/details-card/index.tsx | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/components/details-card/index.tsx b/src/components/details-card/index.tsx index 28d2b4a..407be68 100644 --- a/src/components/details-card/index.tsx +++ b/src/components/details-card/index.tsx @@ -66,9 +66,7 @@ const ListItem: React.FC<{ skeleton?: boolean; }> = ({ icon, title, value, link, skeleton = false }) => { return ( -
+
{icon} {title}
@@ -102,24 +100,23 @@ const OrganizationItem: React.FC<{ }> = ({ icon, title, value, link, skeleton = false }) => { const renderValue = () => { if (typeof value === 'string') { - return value.split(" ").map((company) => { + return value.split(' ').map((company) => { company = company.trim(); if (!company) return null; if (isCompanyMention(company)) { return ( - {company} ); } else { - return ( - {company} - ); + return {company}; } }); }