We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86ce4f2 commit cb22811Copy full SHA for cb22811
1 file changed
src/utils/customPropTypes.js
@@ -16,7 +16,8 @@ const customPropTypes = {
16
});
17
if (disallowed && disallowed.length !== 0) {
18
return new Error(
19
- `\`${componentName}\` should only have children of type \`${allowedTypes}\`.`);
+ `\`${componentName}\` should only have children of type \`${allowedTypes}\`.`
20
+ );
21
}
22
};
23
},
0 commit comments