Skip to content

Commit

Permalink
docs(Popup): make allowed content types statically analyzable
Browse files Browse the repository at this point in the history
  • Loading branch information
David Zukowski committed Dec 6, 2016
1 parent fa9175a commit 457cc70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/Popup/Popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import PopupHeader from './PopupHeader'

const debug = makeDebugger('popup')


const _meta = {
name: 'Popup',
type: META.TYPES.MODULE,
props: {
content: [PropTypes.string, PropTypes.node],
on: ['hover', 'click', 'focus'],
positioning: [
'top left',
Expand Down Expand Up @@ -53,7 +53,7 @@ export default class Popup extends Component {
className: PropTypes.string,

/** Simple text content for the popover */
content: PropTypes.oneOfType(_meta.props.content),
content: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),

/** A Flowing popup have no maximum width and continue to flow to fit its content */
flowing: PropTypes.bool,
Expand Down

0 comments on commit 457cc70

Please sign in to comment.