Skip to content
Snippets Groups Projects
Commit 48d9e6f0 authored by Jack Reed's avatar Jack Reed
Browse files

provides more readable HOC naming/debuggability

parent bf0134f7
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,12 @@ export default function miradorWithPlugins(WrappedComponent) {
}
}
const wrappedComponentName = WrappedComponent.displayName
|| WrappedComponent.name
|| 'Component';
ConnectedComponent.displayName = `miradorWithPlugins(${wrappedComponentName})`;
ConnectedComponent.propTypes = {
config: PropTypes.instanceOf(Object).isRequired,
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment