feat: add auto-load media content setting option
This commit is contained in:
parent
6d7ecfe2fd
commit
f785d0d8a2
35 changed files with 458 additions and 105 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { generateImageByPubkey } from '@/lib/pubkey'
|
||||
import { useEffect, useMemo, useState } from 'react'
|
||||
import Image from '../Image'
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
export default function ProfileBanner({
|
||||
pubkey,
|
||||
|
|
@ -26,7 +27,7 @@ export default function ProfileBanner({
|
|||
<Image
|
||||
image={{ url: bannerUrl, pubkey }}
|
||||
alt={`${pubkey} banner`}
|
||||
className={className}
|
||||
className={cn('rounded-none', className)}
|
||||
onError={() => setBannerUrl(defaultBanner)}
|
||||
/>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue