-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to remove provider composer; prep for commit
- Loading branch information
1 parent
07103a0
commit 50f0d3a
Showing
7 changed files
with
36 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
packages/react/kibana_context/provider/kibana_provider.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import React, { FC } from 'react'; | ||
import { I18nProvider } from '@kbn/i18n-react'; | ||
|
||
import { KibanaThemeProvider, type KibanaThemeProviderProps } from '../theme'; | ||
|
||
/** Props for the KibanaContextProvider */ | ||
export type KibanaContextProviderProps = KibanaThemeProviderProps; | ||
|
||
/** | ||
* The `KibanaContextProvider` provides the necessary context for Kibana's React components, including | ||
* the theme and i18n context. In almost all cases, this provider should appear early in any plugin's | ||
* React trees. | ||
*/ | ||
export const KibanaContextProvider: FC<KibanaContextProviderProps> = ({ children, ...props }) => { | ||
return ( | ||
<I18nProvider> | ||
<KibanaThemeProvider {...props}>{children}</KibanaThemeProvider> | ||
</I18nProvider> | ||
); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.