1
0
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:
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;
return WithContext;