Skip to content

Commit

Permalink
Merge branch 'issue-7561/emotion-memoize-all-generated-styles-EuiTool…
Browse files Browse the repository at this point in the history
…Tip+EuiconTip' of github.com:USB-CI3715/eui into issue-7561/emotion-memoize-all-generated-styles-EuiToolTip+EuiconTip

necesario to merge with main
  • Loading branch information
amarantaVC committed Dec 9, 2024
2 parents 05192a9 + 2842e3a commit f527695
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/eui/src/components/tool_tip/tool_tip_arrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@
*/

import React, { HTMLAttributes, FunctionComponent } from 'react';
import { useEuiTheme } from '../../services';
import { useEuiMemoizedStyles } from '../../services';
import { ToolTipPositions } from './tool_tip_popover';
import { euiToolTipStyles } from './tool_tip.styles';

export const EuiToolTipArrow: FunctionComponent<
{ position: ToolTipPositions } & HTMLAttributes<HTMLDivElement>
> = ({ position, ...props }) => {
const euiTheme = useEuiTheme();
const styles = euiToolTipStyles(euiTheme);
const styles = useEuiMemoizedStyles(euiToolTipStyles);
const cssStyles = [styles.euiToolTip__arrow, styles.arrowPositions[position]];

return <div css={cssStyles} {...props} />;
Expand Down

0 comments on commit f527695

Please sign in to comment.