mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Fix theming for search sessions management (#160182)
## Summary Fixes https://github.com/elastic/kibana/issues/159155. Fixes https://github.com/elastic/kibana/issues/159156. Applies the current theme (dark/light) to the search sessions management table & its components. Before:  After: 
This commit is contained in:
parent
ec747746af
commit
af96431880
1 changed files with 3 additions and 2 deletions
|
@ -10,6 +10,7 @@ import { EuiButtonEmpty, EuiPageHeader, EuiSpacer } from '@elastic/eui';
|
|||
import { FormattedMessage } from '@kbn/i18n-react';
|
||||
import type { CoreStart, HttpStart } from '@kbn/core/public';
|
||||
import React from 'react';
|
||||
import { KibanaThemeProvider } from '@kbn/kibana-react-plugin/public';
|
||||
import type { SearchSessionsMgmtAPI } from '../lib/api';
|
||||
import type { AsyncSearchIntroDocumentation } from '../lib/documentation';
|
||||
import { SearchSessionsMgmtTable } from './table';
|
||||
|
@ -29,7 +30,7 @@ interface Props {
|
|||
|
||||
export function SearchSessionsMgmtMain({ documentation, ...tableProps }: Props) {
|
||||
return (
|
||||
<>
|
||||
<KibanaThemeProvider theme$={tableProps.core.theme.theme$}>
|
||||
<EuiPageHeader
|
||||
pageTitle={
|
||||
<FormattedMessage
|
||||
|
@ -60,6 +61,6 @@ export function SearchSessionsMgmtMain({ documentation, ...tableProps }: Props)
|
|||
|
||||
<EuiSpacer size="l" />
|
||||
<SearchSessionsMgmtTable data-test-subj="search-sessions-mgmt-table" {...tableProps} />
|
||||
</>
|
||||
</KibanaThemeProvider>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue