Reorder some parameters in Editor and UI
This commit is contained in:
parent
1a9224b768
commit
01059aa2f7
2 changed files with 4 additions and 2 deletions
|
@ -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}
|
||||
|
|
|
@ -22,6 +22,7 @@ import { Dispatch } from 'react';
|
|||
|
||||
export interface IUIProps {
|
||||
editorState: IEditorState
|
||||
replaceContainer: IReplaceContainer
|
||||
selectContainer: (containerId: string) => void
|
||||
deleteContainer: (containerId: string) => void
|
||||
onPropertyChange: (key: string, value: string | number | boolean | number[], type?: PropertyType) => void
|
||||
|
@ -34,7 +35,6 @@ export interface IUIProps {
|
|||
saveEditorAsJSON: () => void
|
||||
saveEditorAsSVG: () => void
|
||||
loadState: (move: number) => void
|
||||
replaceContainer: IReplaceContainer
|
||||
setReplaceContainer: Dispatch<React.SetStateAction<IReplaceContainer>>
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue