Skip to content

Commit 6222bb2

Browse files
authored
Apply lint fix
1 parent c97a368 commit 6222bb2

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/components/details-card/index.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ const ListItem: React.FC<{
6666
skeleton?: boolean;
6767
}> = ({ icon, title, value, link, skeleton = false }) => {
6868
return (
69-
<div
70-
className="flex justify-start py-2 px-1 items-center"
71-
>
69+
<div className="flex justify-start py-2 px-1 items-center">
7270
<div className="flex-grow font-medium gap-2 flex items-center my-1">
7371
{icon} {title}
7472
</div>
@@ -102,24 +100,23 @@ const OrganizationItem: React.FC<{
102100
}> = ({ icon, title, value, link, skeleton = false }) => {
103101
const renderValue = () => {
104102
if (typeof value === 'string') {
105-
return value.split(" ").map((company) => {
103+
return value.split(' ').map((company) => {
106104
company = company.trim();
107105
if (!company) return null;
108106

109107
if (isCompanyMention(company)) {
110108
return (
111-
<a href={companyLink(company)}
112-
target="_blank"
113-
rel="noreferrer"
114-
key={company}
109+
<a
110+
href={companyLink(company)}
111+
target="_blank"
112+
rel="noreferrer"
113+
key={company}
115114
>
116115
{company}
117116
</a>
118117
);
119118
} else {
120-
return (
121-
<span key={company}>{company}</span>
122-
);
119+
return <span key={company}>{company}</span>;
123120
}
124121
});
125122
}

0 commit comments

Comments
 (0)