diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 5e3e997c0a4..1ea0a612c88 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -239,7 +239,7 @@ module.exports = { paths: [ { name: '@sanity/ui', - importNames: ['Tooltip'], + importNames: ['Tooltip', 'TooltipProps'], message: 'Please use the (more opinionated) exported components in sanity/src/ui instead.', }, diff --git a/packages/sanity/src/ui/tooltip/Tooltip.tsx b/packages/sanity/src/ui/tooltip/Tooltip.tsx index f03ae8b5c5f..77748f99edf 100644 --- a/packages/sanity/src/ui/tooltip/Tooltip.tsx +++ b/packages/sanity/src/ui/tooltip/Tooltip.tsx @@ -1,8 +1,15 @@ -import {Text, Tooltip as UITooltip, TooltipProps as UITooltipProps} from '@sanity/ui' +import { + Text, + Tooltip as UITooltip, + TooltipProps as UITooltipProps, + HotkeysProps as UIHotkeysProps, +} from '@sanity/ui' import React from 'react' +/** @internal */ export interface TooltipProps - extends Pick { + extends Pick, + Pick { text: string }