File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import type {
1212 ItemConfigType ,
1313 ReactComponentConfig ,
1414} from '@deephaven/golden-layout' ;
15- import { ApiContext } from '@deephaven/jsapi-bootstrap' ;
1615import Log from '@deephaven/log' ;
1716import { usePrevious } from '@deephaven/react-hooks' ;
1817import { 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 ) ;
Original file line number Diff line number Diff 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' ;
1615import PanelManager from './PanelManager' ;
1716
1817/**
@@ -66,7 +65,6 @@ export function isWrappedComponent<
6665}
6766
6867export type PanelProps = {
69- dh ?: DhType ;
7068 glContainer : Container ;
7169 glEventHub : EventEmitter ;
7270} ;
You can’t perform that action at this time.
0 commit comments