File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ interface Props {
12
12
13
13
const hideFn = ( ev : React . SyntheticEvent < HTMLElement , Event > ) => { ev . currentTarget . style . display = 'none' }
14
14
15
- export const LazyImage : FC < ImgHTMLAttributes < HTMLImageElement > & Props > = ( { thumbhash, ...attrs } ) => {
15
+ export const LazyImage : FC < ImgHTMLAttributes < HTMLImageElement > & Props > = ( { thumbhash, srcSet , ...attrs } ) => {
16
16
const [ loaded , setLoaded ] = useState ( false )
17
17
const [ data , setData ] = useState ( '' )
18
18
const [ width , setWidth ] = useState ( '0px' )
@@ -54,6 +54,7 @@ export const LazyImage: FC<ImgHTMLAttributes<HTMLImageElement> & Props> = ({thum
54
54
< img
55
55
ref = { imgRef }
56
56
{ ...attrs }
57
+ srcSet = { srcSet }
57
58
loading = "lazy"
58
59
className = { classNames ( styles . source , loaded ? styles . loaded : null ) }
59
60
onLoad = { ( ) => setLoaded ( true ) }
You can’t perform that action at this time.
0 commit comments