Merge branch 'dev' into dev.loading
This commit is contained in:
commit
0ac42b3500
41 changed files with 1609 additions and 1241 deletions
|
@ -1,4 +1,4 @@
|
|||
import React, { Dispatch, SetStateAction, useCallback, useEffect, useRef, useState } from 'react';
|
||||
import React, { Dispatch, SetStateAction, useCallback, useContext, useEffect, useRef, useState } from 'react';
|
||||
import { UseCustomEvents } from '../../Events/AppEvents';
|
||||
import { MainMenu } from '../MainMenu/MainMenu';
|
||||
import { ContainerModel, IContainerModel } from '../../Interfaces/IContainerModel';
|
||||
|
@ -9,6 +9,7 @@ import { LoadEditor, NewEditor } from './Actions/MenuActions';
|
|||
import { DEFAULT_CONFIG, DEFAULT_MAINCONTAINER_PROPS, FAST_BOOT } from '../../utils/default';
|
||||
import { AppState } from '../../Enums/AppState';
|
||||
import { Loader } from '../Loader/Loader';
|
||||
import { LanguageContext } from '../LanguageProvider/LanguageProvider';
|
||||
|
||||
// App will never have props
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
|
@ -46,6 +47,7 @@ function UseHTTPGETStatePreloading(
|
|||
export function App(props: IAppProps): JSX.Element {
|
||||
const [appState, setAppState] = useState<AppState>(FAST_BOOT);
|
||||
const appRef = useRef<HTMLDivElement>(null);
|
||||
const languageContext = useContext(LanguageContext);
|
||||
|
||||
const defaultMainContainer = new ContainerModel(
|
||||
DEFAULT_MAINCONTAINER_PROPS
|
||||
|
@ -70,6 +72,7 @@ export function App(props: IAppProps): JSX.Element {
|
|||
UseCustomEvents(
|
||||
props.root,
|
||||
appRef,
|
||||
languageContext,
|
||||
setEditorState,
|
||||
setAppState
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue