Skip to content

Commit

Permalink
fix: allow ReactNode type for title and caption (#1140)
Browse files Browse the repository at this point in the history
`string` is already part of the `ReactNode` union type, so this change works
  • Loading branch information
gausie committed Jan 26, 2023
1 parent 30e9278 commit f2a35cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gatsby-image-gallery/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ interface ImageProp {
full: IGatsbyImageData
thumb: IGatsbyImageData
thumbAlt?: string
title?: string
caption?: string
title?: React.ReactNode
caption?: React.ReactNode
}

interface GalleryProps {
Expand Down

0 comments on commit f2a35cd

Please sign in to comment.