ui: zebra expression add

This commit is contained in:
cha0s 2021-01-30 17:59:29 -06:00
parent 6f174a2612
commit f152ae19a1

View File

@ -78,35 +78,37 @@ const Expressions = ({
);
})
}
<button
className="expressions__add-expression"
onClick={() => {
patch({
op: 'add',
path: join(path, 'expressions/-'),
value: {
type: 'expression',
ops: [
{
type: 'key',
key: 'Flow',
},
{
type: 'key',
key: 'nop',
},
{
type: 'invoke',
args: [],
},
],
},
});
}}
type="button"
>
Add expression
</button>
<div className="expressions__expression-wrapper">
<button
className="expressions__add-expression"
onClick={() => {
patch({
op: 'add',
path: join(path, 'expressions/-'),
value: {
type: 'expression',
ops: [
{
type: 'key',
key: 'Flow',
},
{
type: 'key',
key: 'nop',
},
{
type: 'invoke',
args: [],
},
],
},
});
}}
type="button"
>
Add expression
</button>
</div>
</div>
);
};