possible type fix
This commit is contained in:
parent
84d56cbeaa
commit
5c1a068e2f
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
import NextImage, { ImageProps } from 'next/image'
|
import NextImage, { ImageProps } from 'next/image'
|
||||||
|
import { ItemRef } from 'react-photoswipe-gallery'
|
||||||
|
|
||||||
const Image = ({ ...rest }: ImageProps) => <NextImage {...rest} />
|
const Image = ({ ...rest }: ImageProps & { ref?: ItemRef }) => <NextImage {...rest} />
|
||||||
|
|
||||||
export default Image
|
export default Image
|
||||||
|
|
Loading…
Reference in a new issue