1
0
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:
Brett Sun 2016-06-10 10:17:16 +02:00
parent 206eca16cb
commit ec13e968a4

View File

@ -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;