Skip to content

Commit 04dc52e

Browse files
committed
fixes build errors
1 parent f901580 commit 04dc52e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/app/page.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import { Button } from "@/components/ui/button";
44
import { useTRPC } from "@/trpc/client";
55
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
6-
import { toast } from "sonner";
76

87
export default function Home() {
98
const trpc = useTRPC();
@@ -19,14 +18,6 @@ export default function Home() {
1918
}),
2019
);
2120

22-
const testAI = useMutation(
23-
trpc.workflows.testAI.mutationOptions({
24-
onSuccess: (data) => {
25-
toast.success(data.message);
26-
},
27-
}),
28-
);
29-
3021
return (
3122
<div>
3223
<Button
@@ -35,9 +26,6 @@ export default function Home() {
3526
>
3627
Create Workflow
3728
</Button>
38-
<Button disabled={testAI.isPending} onClick={() => testAI.mutate()}>
39-
Test AI
40-
</Button>
4129
<pre>{JSON.stringify(data, null, 2)}</pre>
4230
</div>
4331
);

0 commit comments

Comments
 (0)