From d25425cc5aa8ca9e2b0f24ec747201fa32605118 Mon Sep 17 00:00:00 2001 From: Josh Kruder Date: Sun, 8 Mar 2015 00:59:09 -0500 Subject: [PATCH] Fixes warning displayed in doc/example about invalid prop type. --- docs/src/app/components/component-doc.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/src/app/components/component-doc.jsx b/docs/src/app/components/component-doc.jsx index ec5e26bd6f1d5a..3049278a697d83 100644 --- a/docs/src/app/components/component-doc.jsx +++ b/docs/src/app/components/component-doc.jsx @@ -10,7 +10,10 @@ var ComponentDoc = React.createClass({ propTypes: { code: React.PropTypes.string.isRequired, - desc: React.PropTypes.string, + desc: React.PropTypes.oneOfType([ + React.PropTypes.string, + React.PropTypes.element + ]), name: React.PropTypes.string.isRequired, componentInfo: React.PropTypes.array.isRequired },