moved old state handler code

This commit is contained in:
ari committed 2021-12-14 15:56:07 -05:00
1 parent d0bc01d2f1
commit 54e628481c
19 files changed
+642 -55

No files matched your search

@@ -8,15 +8,30 @@ export default {
title: 'NodeEditor',
component: NodeEditor,
parameters: { actions: { argTypesRegex: '^on.*' } },
args: {
nodeType: 'sequence',
subType: 'and',
}
args: {}
} as ComponentMeta<typeof NodeEditor>
export const Basic: ComponentStory<typeof NodeEditor> = props => {
const Base: ComponentStory<typeof NodeEditor> = props => {
const { classes } = usePageTheme({});
return <div className={classes.page}>
<NodeEditor {...props} />
</div>
};
export const Action = Base.bind({})
Action.args = {
...Action.args,
node: {
$smType: 'action',
action: 'service',
action_data: {
'data': {},
'service': '',
'target': '',
}
}
}
export const SingleOption = Action.bind({})
SingleOption.args = {
...Action.args,
allowedTypes: ['action'],
}