mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Make withContext's displayName more intuitive
This commit is contained in:
parent
206eca16cb
commit
ec13e968a4
@ -131,7 +131,7 @@ export default function withContext(WrappedComponent, ...contextProps) {
|
||||
);
|
||||
};
|
||||
|
||||
WithContext.displayName = `WithContext(${wrappedComponentName}): ${contextProps.join(', ')}`;
|
||||
WithContext.displayName = `WithContext(${wrappedComponentName}): [${contextProps.join(', ')}]`;
|
||||
WithContext.contextTypes = contextTypes;
|
||||
|
||||
return WithContext;
|
||||
|
Loading…
Reference in New Issue
Block a user