Skip to content

Commit

Permalink
feat: adds alt prop to be required
Browse files Browse the repository at this point in the history
  • Loading branch information
Cayla Hamann committed Jul 10, 2020
1 parent 53057ec commit 1f17610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Image = ({ src, alt, width }) => {

Image.propTypes = {
src: PropTypes.string.isRequired,
alt: PropTypes.string,
alt: PropTypes.string.isRequired,
width: PropTypes.number,
};

Expand Down

0 comments on commit 1f17610

Please sign in to comment.