From 1a55d3433df3fb8e4bbd2620a1a43f02accb03c3 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Thu, 6 Nov 2025 08:08:56 +0200 Subject: [PATCH] client/floating buttons: hide the "Edit note" button for the moment --- apps/client/src/widgets/FloatingButtonsDefinitions.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/client/src/widgets/FloatingButtonsDefinitions.tsx b/apps/client/src/widgets/FloatingButtonsDefinitions.tsx index 0eb5e8e46..9ae07b977 100644 --- a/apps/client/src/widgets/FloatingButtonsDefinitions.tsx +++ b/apps/client/src/widgets/FloatingButtonsDefinitions.tsx @@ -99,12 +99,12 @@ function ToggleReadOnlyButton({ note, viewType, isDefaultViewMode }: FloatingBut /> } -function EditButton({ note, noteContext, isDefaultViewMode }: FloatingButtonContext) { +function EditButton({ note, noteContext }: FloatingButtonContext) { const [animationClass, setAnimationClass] = useState(""); const {isReadOnly, enableEditing} = useIsNoteReadOnly(note, noteContext); - // make the edit button stand out on the first display, otherwise - // it's difficult to notice that the note is readonly + const isReadOnlyInfoBarDismissed = false; // TODO + useEffect(() => { if (isReadOnly) { setAnimationClass("bx-tada bx-lg"); @@ -114,7 +114,7 @@ function EditButton({ note, noteContext, isDefaultViewMode }: FloatingButtonCont } }, [ isReadOnly ]); - return isReadOnly &&