From 109cf8b1a170c314139742d387ef0139ab0c2242 Mon Sep 17 00:00:00 2001 From: Robin Pyon Date: Mon, 16 Oct 2023 15:32:59 +0100 Subject: [PATCH] fixup! feat(ui): initial reference studio UI tooltip component --- .eslintrc.cjs | 2 +- packages/sanity/src/ui/tooltip/Tooltip.tsx | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index dd046ccc67a..1bc86895255 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -221,7 +221,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 }