File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 33import { Button } from "@/components/ui/button" ;
44import { useTRPC } from "@/trpc/client" ;
55import { useMutation , useQuery , useQueryClient } from "@tanstack/react-query" ;
6- import { toast } from "sonner" ;
76
87export 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 ) ;
You can’t perform that action at this time.
0 commit comments