Skip to content

Commit

Permalink
Merge pull request #1146 from cozy/fix/InfoProptypes
Browse files Browse the repository at this point in the history
fix(Infos): Fix the text propTypes
  • Loading branch information
probot-auto-merge[bot] authored Aug 30, 2019
2 parents f648590 + 9c62d6e commit 8141b0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion react/Infos/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ Infos.propTypes = {
icon: iconPropType,
/** An important information will be displayed with red colors */
isImportant: PropTypes.bool,
text: PropTypes.string,
/** Can be either a Text, or an element (for instance a ReactMardown component) */
text: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
title: PropTypes.string
}
export default Infos

0 comments on commit 8141b0a

Please sign in to comment.