Skip to content
Snippets Groups Projects
Unverified Commit 4d957996 authored by Jack Reed's avatar Jack Reed Committed by GitHub
Browse files

Merge pull request #3143 from ProjectMirador/plugin-props

Pass props to plugins
parents dd168726 1ea0975b
Branches
Tags
No related merge requests found
...@@ -43,7 +43,7 @@ export class ErrorContent extends Component { ...@@ -43,7 +43,7 @@ export class ErrorContent extends Component {
</ExpansionPanelDetails> </ExpansionPanelDetails>
</ExpansionPanel> </ExpansionPanel>
)} )}
<PluginHook error={error} /> <PluginHook {...this.props} />
</> </>
); );
} }
... ...
......
...@@ -333,7 +333,7 @@ export class OpenSeadragonViewer extends Component { ...@@ -333,7 +333,7 @@ export class OpenSeadragonViewer extends Component {
{ drawAnnotations { drawAnnotations
&& <AnnotationsOverlay viewer={viewer} windowId={windowId} /> } && <AnnotationsOverlay viewer={viewer} windowId={windowId} /> }
{ enhancedChildren } { enhancedChildren }
<PluginHook viewer={viewer} windowId={windowId} /> <PluginHook viewer={viewer} {...{ ...this.props, children: null }} />
</section> </section>
</> </>
); );
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment