From 1a302ca957409991da0352f63c9dc358a1ff6e7c Mon Sep 17 00:00:00 2001 From: NFish Date: Wed, 7 Aug 2024 11:26:47 +0800 Subject: [PATCH] feat: add disabled support to tooltip-plus component (#7036) --- web/app/components/base/tooltip-plus/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/app/components/base/tooltip-plus/index.tsx b/web/app/components/base/tooltip-plus/index.tsx index b833690469..1f8a091fa5 100644 --- a/web/app/components/base/tooltip-plus/index.tsx +++ b/web/app/components/base/tooltip-plus/index.tsx @@ -8,6 +8,7 @@ import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigge export type TooltipProps = { position?: Placement triggerMethod?: 'hover' | 'click' + disabled?: boolean popupContent: React.ReactNode children: React.ReactNode hideArrow?: boolean @@ -23,6 +24,7 @@ const arrow = ( const Tooltip: FC = ({ position = 'top', triggerMethod = 'hover', + disabled = false, popupContent, children, hideArrow, @@ -67,7 +69,7 @@ const Tooltip: FC = ({ return (