Skip to content

Commit

Permalink
feat: add height auto
Browse files Browse the repository at this point in the history
  • Loading branch information
Cayla Hamann committed Jul 14, 2020
1 parent b2d0272 commit 4f03954
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ Image.propTypes = {
src: PropTypes.string.isRequired,
alt: PropTypes.string.isRequired,
width: PropTypes.number,
height: PropTypes.number,
};

Image.defaultProps = {
width: 1200,
height: 400,
width: 'auto',
};

export default Image;

0 comments on commit 4f03954

Please sign in to comment.