From e755c2fe8b0b0ae304ac6577d847bd8d4b6702fc Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Mon, 24 Oct 2022 19:06:38 -0700 Subject: [PATCH] WIP --- packages/editor/src/components/app-bar/index.tsx | 14 ++------------ .../test/playground/map-render/js/viewmode.tsx | 2 +- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/packages/editor/src/components/app-bar/index.tsx b/packages/editor/src/components/app-bar/index.tsx index 5b10ce66..aa7b60b5 100644 --- a/packages/editor/src/components/app-bar/index.tsx +++ b/packages/editor/src/components/app-bar/index.tsx @@ -41,6 +41,7 @@ import IconButton from '@mui/material/IconButton'; import { ToolbarActionType } from '../toolbar/ToolbarActionType'; import MapInfo from '../../classes/model/map-info'; import { useIntl } from 'react-intl'; +import MapTitle from '../action-widget/pane/map-title'; interface AppBarProps { model: Editor; @@ -93,18 +94,7 @@ const AppBar = ({ model, mapInfo, capability, onAction, accountConfig }: AppBarP visible: !capability.isHidden('appbar-title'), }, { - render: () => ( - - - {mapInfo.getTitle()} - - - ), + render: () => , }, null, { diff --git a/packages/editor/test/playground/map-render/js/viewmode.tsx b/packages/editor/test/playground/map-render/js/viewmode.tsx index c0ad3b0f..97598447 100644 --- a/packages/editor/test/playground/map-render/js/viewmode.tsx +++ b/packages/editor/test/playground/map-render/js/viewmode.tsx @@ -40,7 +40,7 @@ const options: EditorOptions = { ReactDOM.render( console.log('action called:', action)}