From 513e5c88f564c97c4fa8e98a29630d7811458d06 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sat, 5 Mar 2022 09:08:19 -0800 Subject: [PATCH] Remove print button on try --- .../editor/src/components/toolbar/index.tsx | 22 ++++++++++--------- .../src/components/EditorRenderMode.ts | 2 +- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/packages/editor/src/components/toolbar/index.tsx b/packages/editor/src/components/toolbar/index.tsx index df27da4f..9a08ea4f 100644 --- a/packages/editor/src/components/toolbar/index.tsx +++ b/packages/editor/src/components/toolbar/index.tsx @@ -120,13 +120,15 @@ export default function Toolbar({ > - onAction('print')} - > - - + {(editorMode === 'edition-owner' || editorMode === 'edition-editor' || editorMode === 'edition-viewer') && ( + onAction('print')} + > + + + )} {editorMode === 'edition-owner' && ( <> )} {(editorMode === 'edition-owner' || editorMode === 'edition-editor') && ( - - - + + + )} {editorMode === 'edition-owner' && ( onAction('share')}> diff --git a/packages/mindplot/src/components/EditorRenderMode.ts b/packages/mindplot/src/components/EditorRenderMode.ts index 4986dae6..70696093 100644 --- a/packages/mindplot/src/components/EditorRenderMode.ts +++ b/packages/mindplot/src/components/EditorRenderMode.ts @@ -1,2 +1,2 @@ -type EditorRenderMode = 'viewonly' | 'edition-owner' | 'edition-editor' | 'showcase'; +type EditorRenderMode = 'viewonly' | 'edition-owner' | 'edition-editor' | 'edition-viewer' | 'showcase'; export default EditorRenderMode;