mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +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;
|
WithContext.contextTypes = contextTypes;
|
||||||
|
|
||||||
return WithContext;
|
return WithContext;
|
||||||
|
Loading…
Reference in New Issue
Block a user