Reenable fastboot

This commit is contained in:
Eric NGUYEN 2022-10-18 16:52:59 +02:00
parent eaf03824fb
commit e03ba11415

View file

@ -6,7 +6,7 @@ import { Editor } from '../Editor/Editor';
import { IEditorState } from '../../Interfaces/IEditorState'; import { IEditorState } from '../../Interfaces/IEditorState';
import { LoadState } from './Actions/Load'; import { LoadState } from './Actions/Load';
import { LoadEditor, NewEditor } from './Actions/MenuActions'; import { LoadEditor, NewEditor } from './Actions/MenuActions';
import { DEFAULT_CONFIG, DEFAULT_MAINCONTAINER_PROPS } from '../../utils/default'; import { DEFAULT_CONFIG, DEFAULT_MAINCONTAINER_PROPS, FAST_BOOT } from '../../utils/default';
import { AppState } from '../../Enums/AppState'; import { AppState } from '../../Enums/AppState';
import { Loader } from '../Loader/Loader'; import { Loader } from '../Loader/Loader';
@ -44,7 +44,7 @@ function UseHTTPGETStatePreloading(
}; };
export function App(props: IAppProps): JSX.Element { export function App(props: IAppProps): JSX.Element {
const [appState, setAppState] = useState<AppState>(AppState.MainMenu); const [appState, setAppState] = useState<AppState>(FAST_BOOT);
const appRef = useRef<HTMLDivElement>(null); const appRef = useRef<HTMLDivElement>(null);
const defaultMainContainer = new ContainerModel( const defaultMainContainer = new ContainerModel(