Refactor UI's props

This commit is contained in:
Eric NGUYEN 2022-10-17 19:02:36 +02:00
parent b4eba6bb9b
commit 28b0965626
2 changed files with 44 additions and 54 deletions

View file

@ -279,14 +279,11 @@ export function Editor(props: IEditorProps): JSX.Element {
return (
<div ref={editorRef} className="Editor font-sans h-full">
<UI
selectedContainer={selected}
current={current}
history={history}
historyCurrentStep={historyCurrentStep}
availableContainers={configuration.AvailableContainers}
availableSymbols={configuration.AvailableSymbols}
categories={configuration.Categories}
apiConfiguration={configuration.APIConfiguration}
editorState={{
configuration: props.configuration,
history,
historyCurrentStep
}}
selectContainer={(container) => setNewHistory(
SelectContainer(
container,