Skip to content

Commit

Permalink
fix(Accordion): allow contentShorthand for panel prop (#991)
Browse files Browse the repository at this point in the history
fix(Accordion): allow contentShorthand for panel prop
  • Loading branch information
wassname authored and levithomason committed Dec 6, 2016
1 parent c3bcaa3 commit 6209361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/Accordion/Accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class Accordion extends Component {
onTitleClick: PropTypes.func,

/**
* Create simple accordion panels from an array of { text: <string>, content: <string> } objects.
* Create simple accordion panels from an array of { text: <string>, content: <custom> } objects.
* Object can optionally define an `active` key to open/close the panel.
* Mutually exclusive with children.
* TODO: AccordionPanel should be a sub-component
Expand All @@ -58,7 +58,7 @@ export default class Accordion extends Component {
PropTypes.arrayOf(PropTypes.shape({
active: PropTypes.bool,
title: PropTypes.string,
content: PropTypes.string,
content: customPropTypes.contentShorthand,
onClick: PropTypes.func,
})),
]),
Expand Down

0 comments on commit 6209361

Please sign in to comment.