Reorder some parameters in Editor and UI

This commit is contained in:
Eric NGUYEN 2023-02-14 15:53:55 +01:00
parent 1a9224b768
commit 01059aa2f7
2 changed files with 4 additions and 2 deletions

View file

@ -124,6 +124,7 @@ export function Editor(props: IEditorProps): JSX.Element {
history,
historyCurrentStep
}}
replaceContainer={replaceContainer}
selectContainer={(container) => setNewHistory(
SelectContainer(
container,
@ -209,7 +210,8 @@ export function Editor(props: IEditorProps): JSX.Element {
)}
saveEditorAsSVG={() => SaveEditorAsSVG()}
loadState={(move) => setHistoryCurrentStep(move)}
replaceContainer ={replaceContainer} setReplaceContainer={setReplaceContainer}/>
setReplaceContainer={setReplaceContainer}
/>
<Menu
getListener={() => editorRef.current}
configuration={configuration}