diff --git a/__tests__/miradorAnnotationPlugin.test.js b/__tests__/miradorAnnotationPlugin.test.js index f65b9a16c0e3d5e6c1f9dff278d414ca36f7b368..52b97c99297b837df880e9de6105d5a8ba873e2a 100644 --- a/__tests__/miradorAnnotationPlugin.test.js +++ b/__tests__/miradorAnnotationPlugin.test.js @@ -8,7 +8,7 @@ function createWrapper(props) { return shallow( <miradorAnnotationPlugin.component config={{}} - TargetComponent={'<div>hello</div>'} + TargetComponent="<div>hello</div>" targetProps={{}} addCompanionWindow={jest.fn()} receiveAnnotation={jest.fn()} diff --git a/src/plugins/externalStorageAnnotationPlugin.js b/src/plugins/externalStorageAnnotationPlugin.js index b976e088cd73c36bccca14586951e340f136cf60..f7e41305401d971be9b347d3460120118fc7111b 100644 --- a/src/plugins/externalStorageAnnotationPlugin.js +++ b/src/plugins/externalStorageAnnotationPlugin.js @@ -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: [], }; /** */