Skip to content

Commit

Permalink
Revert changes to KibanaRenderContextProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
maryam-saeidi committed Dec 19, 2024
1 parent 2eb6c49 commit f0eb0c3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/react/kibana_context/render/render_provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,9 @@ export type KibanaRenderContextProviderProps = Omit<KibanaRootContextProviderPro
export const KibanaRenderContextProvider: FC<
PropsWithChildren<KibanaRenderContextProviderProps>
> = ({ children, ...props }) => {
const { analytics, executionContext, i18n, theme, userProfile, colorMode, modify } = props;
return (
<KibanaRootContextProvider
globalStyles={false}
{...{ executionContext, i18n, theme, userProfile, modify, colorMode }}
>
<KibanaErrorBoundaryProvider analytics={analytics}>
<KibanaRootContextProvider globalStyles={false} {...props}>
<KibanaErrorBoundaryProvider analytics={props.analytics}>
<KibanaErrorBoundary>{children}</KibanaErrorBoundary>
</KibanaErrorBoundaryProvider>
</KibanaRootContextProvider>
Expand Down

0 comments on commit f0eb0c3

Please sign in to comment.