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;