diff --git a/src/frontend/src/alerts/alertDropDown/index.tsx b/src/frontend/src/alerts/alertDropDown/index.tsx index 12fb8beee..5a2e54e67 100644 --- a/src/frontend/src/alerts/alertDropDown/index.tsx +++ b/src/frontend/src/alerts/alertDropDown/index.tsx @@ -46,7 +46,7 @@ export default function AlertDropdown({ } }} > - {children} + {children} = ({ - content, - side, - asChild = true, - children, - styleClasses, - delayDuration = 500, - open, - align, - setOpen, - avoidCollisions = false, -}) => { - if (!content) { - return <>{children}; - } +const ShadTooltip = forwardRef( + ( + { + content, + side, + asChild = true, + children, + styleClasses, + delayDuration = 500, + open, + align, + setOpen, + avoidCollisions = false, + }, + ref, + ) => { + if (!content) { + return <>{children}; + } - return ( - - {children} - - {content} - - - ); -}; + {children} + + {content} + + + ); + }, +); + +ShadTooltip.displayName = "ShadTooltip"; export default ShadTooltip; diff --git a/src/frontend/src/components/core/appHeaderComponent/index.tsx b/src/frontend/src/components/core/appHeaderComponent/index.tsx index c95496799..5150527bb 100644 --- a/src/frontend/src/components/core/appHeaderComponent/index.tsx +++ b/src/frontend/src/components/core/appHeaderComponent/index.tsx @@ -121,7 +121,6 @@ export default function AppHeader(): JSX.Element {