flipped trigger + condition

createMode for condition editor
This commit is contained in:
ari committed 2022-07-10 12:59:33 -04:00
1 parent f549993d3e
commit e7dec306df
10 files changed
+51 -30

No files matched your search

+1 -3
View File
@@ -15,7 +15,6 @@ export interface NodeEditorProps {
onSave?: (n: AutomationNode) => void;
onFlags?: (isReady: boolean, isModified: boolean) => void;
saveBtnCreateText?: boolean;
isErrored?: boolean;
children?: ReactNode;
}
@@ -27,10 +26,9 @@ export const NodeEditor: FC<NodeEditorProps> = ({
onFlags = () => {},
saveBtnCreateText = false,
children,
isErrored = false,
}) => {
// state
const state = useEditorNodeState(node, isErrored, allowedTypes);
const state = useEditorNodeState(node, allowedTypes, saveBtnCreateText);
const confirm = useConfirm();
// alias