Updated propTypes in Image component
• Updated: - propTypes in Image component
This commit is contained in:
parent
91b6537e63
commit
8a20e4ee0a
@ -76,7 +76,7 @@ const mapDispatchToProps = (dispatch, { alt, src }) => ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
Image.propTypes = {
|
Image.propTypes = {
|
||||||
alt: PropTypes.string.isRequired,
|
alt: PropTypes.string,
|
||||||
isLazy: PropTypes.string,
|
isLazy: PropTypes.string,
|
||||||
className: PropTypes.string,
|
className: PropTypes.string,
|
||||||
width: PropTypes.oneOfType([
|
width: PropTypes.oneOfType([
|
||||||
@ -92,7 +92,7 @@ Image.propTypes = {
|
|||||||
lazy: PropTypes.bool,
|
lazy: PropTypes.bool,
|
||||||
imageRef: PropTypes.func,
|
imageRef: PropTypes.func,
|
||||||
expandOnClick: PropTypes.bool,
|
expandOnClick: PropTypes.bool,
|
||||||
onOpenMedia: PropTypes.func.isRequired,
|
onOpenMediaModal: PropTypes.func.isRequired,
|
||||||
}
|
}
|
||||||
|
|
||||||
Image.defaultProps = {
|
Image.defaultProps = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user