Skip to content

Commit fc63ead

Browse files
committed
Allow DescriptionField to received JSX as contents.
1 parent 30e4f1e commit fc63ead

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/fields/DescriptionField.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ function DescriptionField(props) {
88
if (process.env.NODE_ENV !== "production") {
99
DescriptionField.propTypes = {
1010
id: PropTypes.string,
11-
description: PropTypes.string,
11+
description: PropTypes.oneOfType([
12+
PropTypes.string,
13+
PropTypes.element,
14+
]),
1215
};
1316
}
1417

0 commit comments

Comments
 (0)