Skip to content

Commit

Permalink
refactor(CarouselCaption): make captionText, captionHeader proptype a…
Browse files Browse the repository at this point in the history
… node (#1653)

fixes #1537
  • Loading branch information
nylon22 authored and TheSharpieOne committed Oct 9, 2019
1 parent 5b9e758 commit 9e7b704
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/lib/Components/CarouselPage.js
Expand Up @@ -103,8 +103,8 @@ export default class CarouselPage extends React.Component {
<pre>
<PrismCode className="language-jsx">
{`CarouselCaption.propTypes = {
captionHeader: PropTypes.string,
captionText: PropTypes.string.isRequired,
captionHeader: PropTypes.node,
captionText: PropTypes.node.isRequired,
cssModule: PropTypes.object
};`}
</PrismCode>
Expand Down
4 changes: 2 additions & 2 deletions src/CarouselCaption.js
Expand Up @@ -21,8 +21,8 @@ const CarouselCaption = (props) => {
};

CarouselCaption.propTypes = {
captionHeader: PropTypes.string,
captionText: PropTypes.string.isRequired,
captionHeader: PropTypes.node,
captionText: PropTypes.node.isRequired,
cssModule: PropTypes.object,
className: PropTypes.string,
};
Expand Down

0 comments on commit 9e7b704

Please sign in to comment.