Skip to content

Commit

Permalink
Fix observability solution
Browse files Browse the repository at this point in the history
Fix Maps

Experimentally revert changes around Layercontrol

move KibanaRednerContextProvider where the react tree starts

remove mountReactNode and simplify
  • Loading branch information
tsullivan committed May 24, 2024
1 parent 40cb87a commit 4c67079
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,24 @@
* 2.0.
*/

import React from 'react';

import { IToasts } from '@kbn/core-notifications-browser';
import { mountReactNode } from '@kbn/core-mount-utils-browser-internal';
import { toMountPoint } from '@kbn/react-kibana-mount';
import { EuiButton, EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { LOGS_ONBOARDING_FEEDBACK_LINK } from '@kbn/observability-shared-plugin/common';
import React from 'react';
import { useKibanaContextForPlugin } from '../../../utils/use_kibana';
import { FEEDBACK_TOAST_LIFETIME_MS } from './constants';

export const createRequestFeedbackNotifier = (toasts: IToasts) => () => {
const startServices = useKibanaContextForPlugin().services;
toasts.addInfo(
{
title: i18n.translate('xpack.observabilityLogsExplorer.feedbackToast.title', {
defaultMessage: 'Tell us what you think!',
}),
text: mountReactNode(
text: toMountPoint(
<>
<p>
{i18n.translate('xpack.observabilityLogsExplorer.feedbackToast.text', {
Expand All @@ -42,7 +45,8 @@ export const createRequestFeedbackNotifier = (toasts: IToasts) => () => {
</EuiButton>
</EuiFlexItem>
</EuiFlexGroup>
</>
</>,
startServices
),
iconType: 'editorComment',
},
Expand Down

0 comments on commit 4c67079

Please sign in to comment.