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 = {
|
||||
alt: PropTypes.string.isRequired,
|
||||
alt: PropTypes.string,
|
||||
isLazy: PropTypes.string,
|
||||
className: PropTypes.string,
|
||||
width: PropTypes.oneOfType([
|
||||
@ -92,7 +92,7 @@ Image.propTypes = {
|
||||
lazy: PropTypes.bool,
|
||||
imageRef: PropTypes.func,
|
||||
expandOnClick: PropTypes.bool,
|
||||
onOpenMedia: PropTypes.func.isRequired,
|
||||
onOpenMediaModal: PropTypes.func.isRequired,
|
||||
}
|
||||
|
||||
Image.defaultProps = {
|
||||
|
Loading…
Reference in New Issue
Block a user