Skip to content

Commit

Permalink
fix ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MiriamAparicio committed Dec 17, 2024
1 parent 5b4630b commit 65f36c4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { FormattedMessage } from '@kbn/i18n-react';
import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import { fromKueryExpression, toElasticsearchQuery } from '@kbn/es-query';
import numeral from '@elastic/numeral';
import { css } from '@emotion/react';
import { termQuery } from '../../../../../common/utils/term_query';
import {
SERVICE_NAME,
Expand Down Expand Up @@ -279,7 +280,9 @@ export function FieldStatsPopover({
}
)}
data-test-subj={'apmCorrelationsContextPopoverButton'}
style={{ marginLeft: euiTheme.size.xs }}
css={css`
marginleft: ${euiTheme.size.xs};
`}
/>
</EuiToolTip>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ export function FailedTransactionsCorrelations({ onFilter }: { onFilter: () => v
<EuiIconTip
size="m"
iconProps={{
style: { marginLeft: euiTheme.size.xs },
css: { marginLeft: euiTheme.size.xs },
}}
content={i18n.translate(
'xpack.apm.correlations.latencyCorrelations.advancedStatisticsTooltipContent',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,21 @@
* 2.0.
*/

import { EuiFlyout } from '@elastic/eui';
import styled from '@emotion/styled';
import React from 'react';
import { EuiFlyout, EuiFlyoutProps } from '@elastic/eui';
import styled, { type StyledComponent } from '@emotion/styled';

export const ResponsiveFlyout = styled(EuiFlyout)`
// The return type of this component needs to be specified because the inferred
// return type depends on types that are not exported from EUI. You get a TS4023
// error if the return type is not specified.
export const ResponsiveFlyout: StyledComponent<EuiFlyoutProps> = styled(
({
className,
...flyoutProps
}: {
className?: string;
} & EuiFlyoutProps) => <EuiFlyout {...flyoutProps} className={className} />
)`
width: 100%;
@media (min-width: 800px) {
Expand Down

0 comments on commit 65f36c4

Please sign in to comment.