We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bcc489d + 262077a commit 2b692c1Copy full SHA for 2b692c1
src/components/themr.js
@@ -54,7 +54,7 @@ export default (componentName, localTheme, options = {}) => (ThemedComponent) =>
54
* @property {{wrappedInstance: *}} refs
55
*/
56
class Themed extends Component {
57
- static displayName = `Themed${ThemedComponent.name}`;
+ static displayName = `Themed${(ThemedComponent.displayName || ThemedComponent.name || "Component")}`;
58
59
static contextTypes = {
60
themr: PropTypes.object
0 commit comments