Skip to content
Snippets Groups Projects
Unverified Commit 836d5c2f authored by aeschylus's avatar aeschylus Committed by GitHub
Browse files

Merge pull request #1590 from ProjectMirador/better-hoc-naming

provides more readable HOC naming/debuggability
parents 3d664289 48d9e6f0
Branches
Tags
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