From 281ad1ab59cc54dd206e8669ae8a1449cdcd05ae Mon Sep 17 00:00:00 2001 From: Nina Andal Aarvik Date: Mon, 23 Oct 2023 14:39:40 +0200 Subject: [PATCH] fix(src): fix studioUI tooltip to take strings and replace current tooltips with this logic --- .../vision/src/components/VisionGui.tsx | 10 ++---- .../src/core/components/TooltipOfDisabled.tsx | 17 ++++----- .../components/collapseMenu/CollapseMenu.tsx | 7 +--- .../core/components/userAvatar/UserAvatar.tsx | 2 +- .../customSchema/blockActions.tsx | 2 +- .../core/form/studio/assetSource/AssetRow.tsx | 2 +- .../navbar/resources/ResourcesButton.tsx | 2 +- .../components/navbar/userMenu/UserMenu.tsx | 6 +--- .../navbar/workspace/WorkspaceMenuButton.tsx | 2 +- .../InsufficientPermissionsMessageTooltip.tsx | 8 +---- .../header/DocumentPanelHeader.tsx | 10 +----- .../document/statusBar/ActionMenuButton.tsx | 6 ++-- .../statusBar/sparkline/DocumentBadges.tsx | 2 +- packages/sanity/src/ui/tooltip/Tooltip.tsx | 36 +++++++++++++++---- 14 files changed, 53 insertions(+), 59 deletions(-) diff --git a/packages/@sanity/vision/src/components/VisionGui.tsx b/packages/@sanity/vision/src/components/VisionGui.tsx index 496fa0789c8b..3f8f4a21500e 100644 --- a/packages/@sanity/vision/src/components/VisionGui.tsx +++ b/packages/@sanity/vision/src/components/VisionGui.tsx @@ -754,13 +754,7 @@ export class VisionGui extends React.PureComponent - - Copy to clipboard - - } - > +