Skip to content

Commit

Permalink
Fix(withStyles): HOC return component with standard displayName (#1214)
Browse files Browse the repository at this point in the history
* Fix(withStyles): HOC return component with standard displayName

* Fix displayname formatting

* update size snapshots
  • Loading branch information
dannystyleart authored and Henri committed Oct 23, 2019
1 parent b1602dc commit 69caa41
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions packages/react-jss/.size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"dist/react-jss.js": {
"bundled": 169377,
"minified": 58382,
"gzipped": 19100
"bundled": 169398,
"minified": 58389,
"gzipped": 19101
},
"dist/react-jss.min.js": {
"bundled": 112701,
"minified": 41773,
"gzipped": 14177
"bundled": 112722,
"minified": 41780,
"gzipped": 14178
},
"dist/react-jss.cjs.js": {
"bundled": 27027,
"minified": 11649,
"gzipped": 3861
"bundled": 27048,
"minified": 11656,
"gzipped": 3863
},
"dist/react-jss.esm.js": {
"bundled": 26065,
"minified": 10814,
"gzipped": 3740,
"bundled": 26086,
"minified": 10821,
"gzipped": 3741,
"treeshaked": {
"rollup": {
"code": 1841,
Expand Down
2 changes: 1 addition & 1 deletion packages/react-jss/src/withStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const withStyles = <Theme>(styles: Styles<Theme>, options?: HOCOptions<Theme> =
</JssContext.Consumer>
))

JssContextSubscriber.displayName = 'JssContextSubscriber'
JssContextSubscriber.displayName = `JssContextSubscriber(${displayName})`
// $FlowFixMe - React's types should allow custom static properties on component.
JssContextSubscriber.InnerComponent = InnerComponent

Expand Down

0 comments on commit 69caa41

Please sign in to comment.