From 8b74cac8a3559f9ac11076ff3af2a91f8607e1f0 Mon Sep 17 00:00:00 2001
From: Jack Reed <phillipjreed@gmail.com>
Date: Thu, 8 Oct 2020 09:57:17 -0600
Subject: [PATCH] Pass through PluginComponents so that add plugins elsewhere
 are also rendered

---
 src/plugins/externalStorageAnnotationPlugin.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/plugins/externalStorageAnnotationPlugin.js b/src/plugins/externalStorageAnnotationPlugin.js
index b976e08..f7e4130 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: [],
 };
 
 /** */
-- 
GitLab