Skip to content

Commit 9773e06

Browse files
committed
Forgot to build.
1 parent 01a6129 commit 9773e06

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

dist/index.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ var decoratorConstructor = undefined,
3838
* @return {Function}
3939
*/
4040
functionConstructor = function (Component, defaultStyles, options) {
41-
return (function (_Component) {
41+
var decoratedClass = undefined;
42+
43+
decoratedClass = (function (_Component) {
4244
_inherits(_class, _Component);
4345

4446
function _class() {
@@ -73,6 +75,14 @@ functionConstructor = function (Component, defaultStyles, options) {
7375

7476
return _class;
7577
})(Component);
78+
79+
if (Component.displayName) {
80+
decoratedClass.displayName = Component.displayName;
81+
} else {
82+
decoratedClass.displayName = Component.name;
83+
}
84+
85+
return decoratedClass;
7686
};
7787

7888
/**

0 commit comments

Comments
 (0)