Skip to content

Commit ef2e006

Browse files
committed
add alt and src to img proptypes object
1 parent 4dd0768 commit ef2e006

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/compounds/ItemPage/ItemPage.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ ItemPage.propTypes = {
3434
description: PropTypes.string.isRequired,
3535
descriptionStyle: PropTypes.shape({}),
3636
id: PropTypes.number.isRequired,
37-
img: PropTypes.shape({}),
37+
img: PropTypes.shape({
38+
alt: PropTypes.string.isRequired,
39+
src: PropTypes.string.isRequired,
40+
}),
3841
slug: PropTypes.string.isRequired,
3942
title: PropTypes.string.isRequired,
4043
titleStyle: PropTypes.shape({}),

0 commit comments

Comments
 (0)