From 2ad4d9ff10d97f22e78edccb5b45a3a5f4140f9e Mon Sep 17 00:00:00 2001 From: Matias Arriola Date: Tue, 22 Feb 2022 15:43:16 -0300 Subject: [PATCH] Fix EditorOptionsBuilder keyboardEvents option Fix filename typo --- packages/webapp/src/app.tsx | 2 +- .../{EditorOptiosBuider.ts => EditorOptionsBuider.ts} | 4 ++-- packages/webapp/src/components/editor-page/index.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename packages/webapp/src/components/editor-page/{EditorOptiosBuider.ts => EditorOptionsBuider.ts} (92%) diff --git a/packages/webapp/src/app.tsx b/packages/webapp/src/app.tsx index d902a6f1..7733404e 100644 --- a/packages/webapp/src/app.tsx +++ b/packages/webapp/src/app.tsx @@ -17,7 +17,7 @@ import { ThemeProvider, Theme, StyledEngineProvider } from '@mui/material/styles import ReactGA from 'react-ga'; import EditorPage from './components/editor-page'; import AppConfig from './classes/app-config'; -import withSessionExpirationHandling from './components/hocs/withSessionExpirationHandling'; +import withSessionExpirationHandling from './components/HOCs/withSessionExpirationHandling'; declare module '@mui/styles/defaultTheme' { diff --git a/packages/webapp/src/components/editor-page/EditorOptiosBuider.ts b/packages/webapp/src/components/editor-page/EditorOptionsBuider.ts similarity index 92% rename from packages/webapp/src/components/editor-page/EditorOptiosBuider.ts rename to packages/webapp/src/components/editor-page/EditorOptionsBuider.ts index 5c536eba..08ac19f4 100644 --- a/packages/webapp/src/components/editor-page/EditorOptiosBuider.ts +++ b/packages/webapp/src/components/editor-page/EditorOptionsBuider.ts @@ -1,11 +1,11 @@ -import EditorOptions from '@wisemapping/editor'; +import { EditorOptions } from '@wisemapping/editor'; import AppConfig from '../../classes/app-config'; export default class EditorOptionsBulder { static build(locale: string, hotkeys: boolean, isTryMode: boolean): { options: EditorOptions, mapId: number } { let options: EditorOptions = { - editorKeyboardEnabled: hotkeys, + enableKeyboardEvents: hotkeys, locale: locale, mode: isTryMode ? 'showcase' : 'editor', }; diff --git a/packages/webapp/src/components/editor-page/index.tsx b/packages/webapp/src/components/editor-page/index.tsx index 073a1c6c..e65061eb 100644 --- a/packages/webapp/src/components/editor-page/index.tsx +++ b/packages/webapp/src/components/editor-page/index.tsx @@ -9,7 +9,7 @@ import ReactGA from 'react-ga'; import Client from '../../classes/client'; import { activeInstance } from '../../redux/clientSlice'; import { PersistenceManager } from '@wisemapping/mindplot'; -import EditorOptionsBulder from './EditorOptiosBuider'; +import EditorOptionsBulder from './EditorOptionsBuider'; export type EditorPropsType = { isTryMode: boolean;