Skip to content

Commit 9902b18

Browse files
committed
Add displayName to composed components
1 parent 83110cc commit 9902b18

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/themr.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export default (componentName, localTheme, options = DEFAULT_OPTIONS) => (Themed
1212
const { composeTheme: optionComposeTheme } = options
1313
validateComposeOption(optionComposeTheme)
1414
return class Themed extends Component {
15+
static displayName = `Themed ${ThemedComponent.name}`;
16+
1517
static contextTypes = {
1618
themr: PropTypes.object
1719
}

0 commit comments

Comments
 (0)