Skip to content

Commit

Permalink
fix(core): use StudioUI tooltip for TooltipOfDisabled - ref prop error
Browse files Browse the repository at this point in the history
  • Loading branch information
ninaandal committed Oct 19, 2023
1 parent bc47672 commit 3770d57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sanity/src/core/components/TooltipOfDisabled.tsx
Original file line number Diff line number Diff line change
@@ -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(
Expand All @@ -9,7 +9,7 @@ export const TooltipOfDisabled = forwardRef(function DisabledTooltip(
const {children, content, disabled, ...restProps} = props

return (
<Tooltip {...restProps} content={content} disabled={disabled || !content} padding={2} ref={ref}>
<Tooltip {...restProps} content={content} disabled={disabled || !content} ref={ref}>
<div>{children}</div>
</Tooltip>
)
Expand Down

0 comments on commit 3770d57

Please sign in to comment.