From ebbc692cf6145a5a9ed50d5a90d97d3e39a5ddf1 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Mon, 11 Apr 2022 09:00:56 -0300 Subject: [PATCH] Add info icon --- packages/editor/images/info.svg | 1 + packages/editor/src/components/toolbar/index.tsx | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 packages/editor/images/info.svg diff --git a/packages/editor/images/info.svg b/packages/editor/images/info.svg new file mode 100644 index 00000000..fb9f8150 --- /dev/null +++ b/packages/editor/images/info.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/editor/src/components/toolbar/index.tsx b/packages/editor/src/components/toolbar/index.tsx index 22803507..28340244 100644 --- a/packages/editor/src/components/toolbar/index.tsx +++ b/packages/editor/src/components/toolbar/index.tsx @@ -20,6 +20,7 @@ import TopicNoteSvg from '../../../images/topic-note.svg'; import TopicLinkSvg from '../../../images/topic-link.svg'; import TopicRelationSvg from '../../../images/topic-relation.svg'; import ExportSvg from '../../../images/export.svg'; +import InfoSvg from '../../../images/info.svg'; import PublicSvg from '../../../images/public.svg'; import HistorySvg from '../../../images/history.svg'; import PrintSvg from '../../../images/print.svg'; @@ -30,7 +31,7 @@ import { HeaderContainer, ToolbarButton, ToolbarButtonExt, ToolbarRightContainer import ActionButton from '../action-button'; import { EditorRenderMode } from '@wisemapping/mindplot'; -export type ToolbarActionType = 'export' | 'publish' | 'history' | 'print' | 'share'; +export type ToolbarActionType = 'export' | 'publish' | 'history' | 'print' | 'share' | 'info'; export type ToolbarPropsType = { editorMode: EditorRenderMode; @@ -133,6 +134,13 @@ export default function Toolbar({ )} + onAction('info')} + > + + {editorMode === 'edition-owner' && ( <>