Apply lint fix

This commit is contained in:
Ariful Alam 2024-05-19 13:41:15 +06:00 committed by GitHub
parent c97a368ed3
commit 6222bb2996
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,9 +66,7 @@ const ListItem: React.FC<{
skeleton?: boolean; skeleton?: boolean;
}> = ({ icon, title, value, link, skeleton = false }) => { }> = ({ icon, title, value, link, skeleton = false }) => {
return ( return (
<div <div className="flex justify-start py-2 px-1 items-center">
className="flex justify-start py-2 px-1 items-center"
>
<div className="flex-grow font-medium gap-2 flex items-center my-1"> <div className="flex-grow font-medium gap-2 flex items-center my-1">
{icon} {title} {icon} {title}
</div> </div>
@ -102,24 +100,23 @@ const OrganizationItem: React.FC<{
}> = ({ icon, title, value, link, skeleton = false }) => { }> = ({ icon, title, value, link, skeleton = false }) => {
const renderValue = () => { const renderValue = () => {
if (typeof value === 'string') { if (typeof value === 'string') {
return value.split(" ").map((company) => { return value.split(' ').map((company) => {
company = company.trim(); company = company.trim();
if (!company) return null; if (!company) return null;
if (isCompanyMention(company)) { if (isCompanyMention(company)) {
return ( return (
<a href={companyLink(company)} <a
target="_blank" href={companyLink(company)}
rel="noreferrer" target="_blank"
key={company} rel="noreferrer"
key={company}
> >
{company} {company}
</a> </a>
); );
} else { } else {
return ( return <span key={company}>{company}</span>;
<span key={company}>{company}</span>
);
} }
}); });
} }