@@ -1846,21 +1846,21 @@ ReactImageLightbox.propTypes = {
1846
1846
thumbnailImages : PropTypes . arrayOf ( PropTypes . string ) ,
1847
1847
1848
1848
// custom close button component
1849
- closeButtonComponent : PropTypes . element ,
1849
+ closeButtonComponent : PropTypes . func ,
1850
1850
closeButtonComponentProps : PropTypes . shape ( { } ) ,
1851
1851
1852
1852
// custom directional button component
1853
- directionalButtonComponent : PropTypes . element ,
1853
+ directionalButtonComponent : PropTypes . func ,
1854
1854
directionalButtonComponentProps : PropTypes . shape ( { } ) ,
1855
1855
1856
1856
// image header component
1857
- imageHeaderComponent : PropTypes . element ,
1857
+ imageHeaderComponent : PropTypes . func ,
1858
1858
1859
1859
// offset values to set the spacing properly between main image and thumbnails
1860
1860
maxHeightOffset : PropTypes . number ,
1861
1861
maxWidthOffset : PropTypes . number ,
1862
- thumbnailArrowLeft : PropTypes . element ,
1863
- thumbnailArrowRight : PropTypes . element ,
1862
+ thumbnailArrowLeft : PropTypes . func ,
1863
+ thumbnailArrowRight : PropTypes . func ,
1864
1864
widthBreakPoint : PropTypes . number ,
1865
1865
} ;
1866
1866
@@ -1903,15 +1903,15 @@ ReactImageLightbox.defaultProps = {
1903
1903
prevButtonImage : null ,
1904
1904
closeButtonImage : null ,
1905
1905
thumbnailImages : [ ] ,
1906
- closeButtonComponent : null ,
1906
+ closeButtonComponent : ( ) => { } ,
1907
1907
closeButtonComponentProps : { } ,
1908
- directionalButtonComponent : null ,
1908
+ directionalButtonComponent : ( ) => { } ,
1909
1909
directionalButtonComponentProps : { } ,
1910
- imageHeaderComponent : null ,
1910
+ imageHeaderComponent : ( ) => { } ,
1911
1911
maxHeightOffset : 0 ,
1912
1912
maxWidthOffset : 0 ,
1913
- thumbnailArrowLeft : null ,
1914
- thumbnailArrowRight : null ,
1913
+ thumbnailArrowLeft : ( ) => { } ,
1914
+ thumbnailArrowRight : ( ) => { } ,
1915
1915
widthBreakPoint : 960 ,
1916
1916
} ;
1917
1917
0 commit comments