Skip to content

Commit

Permalink
fix: clean up for plugins [LIBS-620] (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomzemp committed Jun 6, 2024
1 parent 2c46f91 commit 13af3b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion adapter/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ AppAdapter.propTypes = {
parentAlertsAdd: PropTypes.func,
plugin: PropTypes.bool,
pwaEnabled: PropTypes.bool,
showAlertsInPlugin: PropTypes.func,
showAlertsInPlugin: PropTypes.bool,
url: PropTypes.string,
onPluginError: PropTypes.func,
}
Expand Down
6 changes: 3 additions & 3 deletions shell/src/PluginLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const PluginInner = ({
// inner div disables margin collapsing which would prevent computing correct height
return (
<div ref={divRef}>
<div style={{ display: 'flex', width: 'fitContent' }}>
<div>
<div id="innerDiv" ref={innerDivRef}>
<D2App
config={config}
Expand All @@ -66,7 +66,7 @@ const PluginInner = ({
PluginInner.propTypes = {
D2App: PropTypes.object,
config: PropTypes.object,
propsFromParent: PropTypes.array,
propsFromParent: PropTypes.object,
resizePluginHeight: PropTypes.func,
resizePluginWidth: PropTypes.func,
}
Expand Down Expand Up @@ -196,7 +196,7 @@ export const PluginLoader = ({ config, requiredProps, D2App }) => {
>
<React.Suspense
fallback={
<Layer translucent level={layers.alert}>
<Layer level={layers.alert}>
<CenteredContent>
<CircularLoader />
</CenteredContent>
Expand Down

0 comments on commit 13af3b5

Please sign in to comment.