Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Fixed prop types on image width and height to avoid console error
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubjanczyk committed May 20, 2021
1 parent 67e9a5d commit 535ef2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MessageCard/MessageCard.jsx
Expand Up @@ -147,8 +147,8 @@ MessageCard.propTypes = {
/** Definition of the Message image */
image: PropTypes.shape({
url: PropTypes.string.isRequired,
width: PropTypes.string,
height: PropTypes.string,
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
altText: PropTypes.string,
}),
/** Data attr for Cypress tests. */
Expand Down

0 comments on commit 535ef2e

Please sign in to comment.