Skip to content

Commit f549e60

Browse files
committed
Remove dh from PanelProps
1 parent 36c2983 commit f549e60

2 files changed

Lines changed: 2 additions & 15 deletions

File tree

packages/dashboard/src/DashboardLayout.tsx

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import type {
1212
ItemConfigType,
1313
ReactComponentConfig,
1414
} from '@deephaven/golden-layout';
15-
import { ApiContext } from '@deephaven/jsapi-bootstrap';
1615
import Log from '@deephaven/log';
1716
import { usePrevious } from '@deephaven/react-hooks';
1817
import { RootState } from '@deephaven/redux';
@@ -121,23 +120,13 @@ export function DashboardLayout({
121120

122121
// Props supplied by GoldenLayout
123122
// eslint-disable-next-line react/prop-types
124-
const { dh, glContainer, glEventHub } = props;
125-
const panel = (
123+
const { glContainer, glEventHub } = props;
124+
return (
126125
<PanelErrorBoundary glContainer={glContainer} glEventHub={glEventHub}>
127126
{/* eslint-disable-next-line react/jsx-props-no-spreading */}
128127
<CType {...props} ref={ref} />
129128
</PanelErrorBoundary>
130129
);
131-
132-
if (dh != null) {
133-
return (
134-
// Enterprise should be able to override the JSAPI
135-
// for each panel via the props
136-
<ApiContext.Provider value={dh}>{panel}</ApiContext.Provider>
137-
);
138-
}
139-
140-
return panel;
141130
}
142131

143132
const wrappedComponent = React.forwardRef(renderComponent);

packages/dashboard/src/DashboardPlugin.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import type {
1212
EventEmitter,
1313
Container,
1414
} from '@deephaven/golden-layout';
15-
import type { dh as DhType } from '@deephaven/jsapi-types';
1615
import PanelManager from './PanelManager';
1716

1817
/**
@@ -66,7 +65,6 @@ export function isWrappedComponent<
6665
}
6766

6867
export type PanelProps = {
69-
dh?: DhType;
7068
glContainer: Container;
7169
glEventHub: EventEmitter;
7270
};

0 commit comments

Comments
 (0)