feat: improve 🌸
This commit is contained in:
parent
36c9796ea1
commit
1274942f64
7 changed files with 166 additions and 107 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { generateImageByPubkey } from '@/lib/pubkey'
|
||||
import { cn } from '@/lib/utils'
|
||||
import { useEffect, useMemo, useState } from 'react'
|
||||
import Image from '../Image'
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
export default function ProfileBanner({
|
||||
pubkey,
|
||||
|
|
@ -28,7 +28,7 @@ export default function ProfileBanner({
|
|||
image={{ url: bannerUrl, pubkey }}
|
||||
alt={`${pubkey} banner`}
|
||||
className={cn('rounded-none', className)}
|
||||
onError={() => setBannerUrl(defaultBanner)}
|
||||
errorPlaceholder={defaultBanner}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue