Refactor UI's props
This commit is contained in:
parent
b4eba6bb9b
commit
28b0965626
2 changed files with 44 additions and 54 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue