From 44dc7fe24a8860f0cc900bcd3f43e8d25bd7f9f3 Mon Sep 17 00:00:00 2001 From: Sukka Date: Sat, 15 Jun 2024 19:24:26 +0800 Subject: [PATCH] fix: hide save button in readonly editor view (#1208) --- src/components/profile/editor-viewer.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/profile/editor-viewer.tsx b/src/components/profile/editor-viewer.tsx index d97e6ef7..1bfbb806 100644 --- a/src/components/profile/editor-viewer.tsx +++ b/src/components/profile/editor-viewer.tsx @@ -171,12 +171,14 @@ export const EditorViewer = (props: Props) => { - - + {readOnly ? null : ( + + )} );