From 5c1a068e2fb578350fe346f774cf45748eba2e9b Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Tue, 7 Jun 2022 12:59:19 -0700 Subject: [PATCH] possible type fix --- components/Image.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/Image.tsx b/components/Image.tsx index fde277a..3637bfe 100644 --- a/components/Image.tsx +++ b/components/Image.tsx @@ -1,5 +1,6 @@ import NextImage, { ImageProps } from 'next/image' +import { ItemRef } from 'react-photoswipe-gallery' -const Image = ({ ...rest }: ImageProps) => +const Image = ({ ...rest }: ImageProps & { ref?: ItemRef }) => export default Image