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

Pass through PluginComponents so that add plugins elsewhere are also rendered

parent 10c50b78
Branches
No related tags found
No related merge requests found
......@@ -44,10 +44,11 @@ class ExternalStorageAnnotation extends Component {
/** */
render() {
const { TargetComponent, targetProps } = this.props;
const { PluginComponents, TargetComponent, targetProps } = this.props;
return (
<TargetComponent
{...targetProps} // eslint-disable-line react/jsx-props-no-spreading
PluginComponents={PluginComponents}
/>
);
}
......@@ -62,6 +63,7 @@ ExternalStorageAnnotation.propTypes = {
adapter: PropTypes.func,
}),
}).isRequired,
PluginComponents: PropTypes.array, // eslint-disable-line react/forbid-prop-types
receiveAnnotation: PropTypes.func.isRequired,
TargetComponent: PropTypes.oneOfType([
PropTypes.func,
......@@ -72,6 +74,7 @@ ExternalStorageAnnotation.propTypes = {
ExternalStorageAnnotation.defaultProps = {
canvases: [],
PluginComponents: [],
};
/** */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment