Apply lint fix
This commit is contained in:
parent
c97a368ed3
commit
6222bb2996
@ -66,9 +66,7 @@ const ListItem: React.FC<{
|
||||
skeleton?: boolean;
|
||||
}> = ({ icon, title, value, link, skeleton = false }) => {
|
||||
return (
|
||||
<div
|
||||
className="flex justify-start py-2 px-1 items-center"
|
||||
>
|
||||
<div className="flex justify-start py-2 px-1 items-center">
|
||||
<div className="flex-grow font-medium gap-2 flex items-center my-1">
|
||||
{icon} {title}
|
||||
</div>
|
||||
@ -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 (
|
||||
<a href={companyLink(company)}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
key={company}
|
||||
<a
|
||||
href={companyLink(company)}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
key={company}
|
||||
>
|
||||
{company}
|
||||
</a>
|
||||
);
|
||||
} else {
|
||||
return (
|
||||
<span key={company}>{company}</span>
|
||||
);
|
||||
return <span key={company}>{company}</span>;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user