From 8a20e4ee0ad35b1c9dff478e6c42ed6952ec002d Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Wed, 28 Oct 2020 23:14:09 -0500 Subject: [PATCH] Updated propTypes in Image component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Updated: - propTypes in Image component --- app/javascript/gabsocial/components/image.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/gabsocial/components/image.js b/app/javascript/gabsocial/components/image.js index 554aecde..9d29e758 100644 --- a/app/javascript/gabsocial/components/image.js +++ b/app/javascript/gabsocial/components/image.js @@ -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 = {