mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 06:37:56 +01:00
Fix EditorOptionsBuilder keyboardEvents option
Fix filename typo
This commit is contained in:
parent
5b4134f18c
commit
2ad4d9ff10
@ -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' {
|
||||
|
@ -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',
|
||||
};
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user