Skip to content

Commit f2c9320

Browse files
committed
add proptypes for markdown props
1 parent 0bbd6db commit f2c9320

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/compounds/Item/CardBody.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ CardBody.propTypes = {
7878
name: PropTypes.string.isRequired,
7979
slug: PropTypes.string,
8080
}),
81+
markdownDescriptionTruncated: PropTypes.oneOfType([
82+
PropTypes.string,
83+
PropTypes.elementType,
84+
]),
85+
markdownDescriptionExtended: PropTypes.oneOfType([
86+
PropTypes.string,
87+
PropTypes.elementType,
88+
]),
8189
orientation: PropTypes.oneOf(['horizontal', 'vertical']),
8290
titleLink: PropTypes.string,
8391
withButtonLink: PropTypes.bool,
@@ -90,6 +98,8 @@ CardBody.defaultProps = {
9098
item: {
9199
description: '',
92100
},
101+
markdownDescriptionTruncated: '',
102+
markdownDescriptionExtended: '',
93103
orientation: 'vertical',
94104
titleLink: '',
95105
withButtonLink: false,

0 commit comments

Comments
 (0)