Apply lint fix
This commit is contained in:
parent
c97a368ed3
commit
6222bb2996
@ -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,13 +100,14 @@ 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
|
||||||
|
href={companyLink(company)}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
key={company}
|
key={company}
|
||||||
@ -117,9 +116,7 @@ const OrganizationItem: React.FC<{
|
|||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return (
|
return <span key={company}>{company}</span>;
|
||||||
<span key={company}>{company}</span>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user