Skip to content

Commit fb40959

Browse files
committed
website
1 parent 35c155b commit fb40959

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

src/pages/nonprofit-outreach/contacts.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@ export function Contacts(props: Props) {
99
return (
1010
<div className="flex max-w-40 max-h-40 overflow-y-auto scroller flex-wrap gap-2">
1111
{props.contacts
12-
.filter((x) => x.email)
12+
.filter((x) => x.email || x.phone)
1313
.map((x, index) => (
1414
<div key={index} className="grid">
15-
<span className="whitespace-normal">
16-
{x.name || x.email || x.phone}
17-
</span>
18-
15+
<span className="whitespace-normal">{x.name || "--"}</span>
1916
<span className="text-2xs whitespace-normal">{x.role}</span>
2017

2118
{x.email && (

src/pages/nonprofit-outreach/index.tsx

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -273,20 +273,29 @@ export default function Page() {
273273
<td>{d.ein}</td>
274274
<td>{d.name}</td>
275275
<td>
276-
<ExtLink
277-
className="text-blue-d1 hover:text-blue"
278-
href={d.website}
279-
>
280-
{d.website}
281-
</ExtLink>
276+
{d.website && (
277+
<ExtLink
278+
className="text-blue-d1 hover:text-blue text-wrap "
279+
href={((x) => {
280+
if (!x.startsWith("http")) {
281+
return `http://${x}`;
282+
}
283+
return x;
284+
})(d.website)}
285+
>
286+
{d.website}
287+
</ExtLink>
288+
)}
282289
</td>
283290
<td>
284291
<Contacts contacts={d.contacts ?? []} />
285292
</td>
286293
<td>
287294
<Socials socials={d.social_media ?? []} />
288295
</td>
289-
<td>{d.donation_platform}</td>
296+
<td>
297+
<p className="text-wrap">{d.donation_platform}</p>
298+
</td>
290299
<td>{d.asset_code}</td>
291300
<td>
292301
{d.asset_amount && !Number.isNaN(d.asset_amount)

0 commit comments

Comments
 (0)