File tree Expand file tree Collapse file tree 2 files changed +18
-12
lines changed
src/pages/nonprofit-outreach Expand file tree Collapse file tree 2 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,10 @@ export function Contacts(props: Props) {
9
9
return (
10
10
< div className = "flex max-w-40 max-h-40 overflow-y-auto scroller flex-wrap gap-2" >
11
11
{ props . contacts
12
- . filter ( ( x ) => x . email )
12
+ . filter ( ( x ) => x . email || x . phone )
13
13
. map ( ( x , index ) => (
14
14
< 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 >
19
16
< span className = "text-2xs whitespace-normal" > { x . role } </ span >
20
17
21
18
{ x . email && (
Original file line number Diff line number Diff line change @@ -273,20 +273,29 @@ export default function Page() {
273
273
< td > { d . ein } </ td >
274
274
< td > { d . name } </ td >
275
275
< 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
+ ) }
282
289
</ td >
283
290
< td >
284
291
< Contacts contacts = { d . contacts ?? [ ] } />
285
292
</ td >
286
293
< td >
287
294
< Socials socials = { d . social_media ?? [ ] } />
288
295
</ td >
289
- < td > { d . donation_platform } </ td >
296
+ < td >
297
+ < p className = "text-wrap" > { d . donation_platform } </ p >
298
+ </ td >
290
299
< td > { d . asset_code } </ td >
291
300
< td >
292
301
{ d . asset_amount && ! Number . isNaN ( d . asset_amount )
You can’t perform that action at this time.
0 commit comments