mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-04 09:06:01 +00:00
public commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { FetchTask } from "flows";
|
||||
import { useState } from "react";
|
||||
import { TaskForm } from "ui/modules/flows/components/form/TaskForm";
|
||||
|
||||
export default function FlowFormTest() {
|
||||
const [data, setData] = useState(null);
|
||||
const task = new FetchTask("Fetch Something", {
|
||||
url: "https://jsonplaceholder.typicode.com/todos/1",
|
||||
method: "{{ input.mode }}"
|
||||
});
|
||||
|
||||
return (
|
||||
<div className="flex flex-col p-3">
|
||||
<TaskForm task={task} onChange={setData as any} />
|
||||
<pre>{JSON.stringify(data, null, 2)}</pre>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user