From 9d8a21653c05e78f0af53f45a50badb2424cf401 Mon Sep 17 00:00:00 2001 From: Sinclair Chen Date: Thu, 11 Aug 2022 19:34:42 -0700 Subject: [PATCH] migrate another daisy tooltip to ours --- web/components/editor.tsx | 13 +++++++------ web/components/tooltip.tsx | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/web/components/editor.tsx b/web/components/editor.tsx index d8a8d37f..468f2cca 100644 --- a/web/components/editor.tsx +++ b/web/components/editor.tsx @@ -33,6 +33,7 @@ import { Row } from './layout/row' import { Spacer } from './layout/spacer' import { MarketModal } from './editor/market-modal' import { insertContent } from './editor/utils' +import { Tooltip } from './tooltip' const DisplayImage = Image.configure({ HTMLAttributes: { @@ -155,15 +156,15 @@ export function TextEditor(props: { {/* Toolbar, with buttons for images and embeds */}
-
+ -
-
+ + -
-
+ + -
+ {/* Spacer that also focuses editor on click */}
+
- +
) : ( <>{children} )