From 087775e1cd0624577eaa5554d538a3dd10bae777 Mon Sep 17 00:00:00 2001 From: Botho <1258870+elbotho@users.noreply.github.com> Date: Fri, 29 Nov 2024 09:59:04 +0100 Subject: [PATCH] refactor(web): hide localstorage notice on editor-preview as well --- packages/editor/src/core/editor.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/editor/src/core/editor.tsx b/packages/editor/src/core/editor.tsx index 23f1de76b8..01c4711e35 100644 --- a/packages/editor/src/core/editor.tsx +++ b/packages/editor/src/core/editor.tsx @@ -40,20 +40,18 @@ export function Editor(props: EditorProps) { {/* only on serlo for now */} - {isSerlo ? ( + {isSerlo && !isSerloEditorPreviewPage ? ( <> - {isSerloEditorPreviewPage ? null : } + - ) : ( - // For non serlo environments, we need to render the toaster - // https://react-hot-toast.com/docs/toaster (already gets rendered - // in the web project) - - )} + ) : null} + {/* For non serlo environments, we need to render the toaster + (already gets rendered in the web project) */} + {!isSerlo ? : null}