From 3770d57f186864d5571d43f6f39b9afd33a0c12d Mon Sep 17 00:00:00 2001 From: Nina Andal Aarvik Date: Thu, 19 Oct 2023 15:21:35 +0200 Subject: [PATCH] fix(core): use StudioUI tooltip for TooltipOfDisabled - ref prop error --- packages/sanity/src/core/components/TooltipOfDisabled.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sanity/src/core/components/TooltipOfDisabled.tsx b/packages/sanity/src/core/components/TooltipOfDisabled.tsx index f96240900ad0..f5895bb491ee 100644 --- a/packages/sanity/src/core/components/TooltipOfDisabled.tsx +++ b/packages/sanity/src/core/components/TooltipOfDisabled.tsx @@ -1,5 +1,5 @@ -import {Tooltip, TooltipProps} from '@sanity/ui' import React, {ForwardedRef, forwardRef} from 'react' +import {Tooltip, TooltipProps} from '../../ui' //ref error /** @internal */ export const TooltipOfDisabled = forwardRef(function DisabledTooltip( @@ -9,7 +9,7 @@ export const TooltipOfDisabled = forwardRef(function DisabledTooltip( const {children, content, disabled, ...restProps} = props return ( - +
{children}
)