Skip to content

Commit

Permalink
fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
MiriamAparicio committed Dec 5, 2024
1 parent 0f155cf commit 12d44a4
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
* 2.0.
*/

import { EuiCallOut } from '@elastic/eui';
import { EuiCallOut, useEuiTheme } from '@elastic/eui';
import React from 'react';
import { i18n } from '@kbn/i18n';
import { EuiButton } from '@elastic/eui';
import { getRouterLinkProps } from '@kbn/router-utils';
import useLocalStorage from 'react-use/lib/useLocalStorage';
import { css } from '@emotion/css';
import { LocatorPublic } from '@kbn/share-plugin/common';
import { DISCOVER_APP_LOCATOR, DiscoverAppLocatorParams } from '@kbn/discover-plugin/common';
import { useKibanaContextForPlugin } from '../hooks/use_kibana';
Expand Down Expand Up @@ -46,6 +47,8 @@ export const LogsDeprecationCallout = ({ page }: LogsDeprecationCalloutProps) =>
},
} = useKibanaContextForPlugin();

const { euiTheme } = useEuiTheme();

const { dismissalStorageKey, message } = pageConfigurations[page];

const [isDismissed, setDismissed] = useLocalStorage(dismissalStorageKey, false);
Expand All @@ -65,9 +68,9 @@ export const LogsDeprecationCallout = ({ page }: LogsDeprecationCalloutProps) =>
iconType="iInCircle"
heading="h2"
onDismiss={() => setDismissed(true)}
css={({ euiTheme }) => ({
marginBottom: euiTheme.size.l,
})}
className={css`
margin-bottom: ${euiTheme.size.l};
`}
>
<p>{message}</p>
<EuiButton
Expand Down

0 comments on commit 12d44a4

Please sign in to comment.