Playing with codegen

This commit is contained in:
2022-09-04 00:31:39 +02:00
parent 697c775f4b
commit a5bf54f82d
2 changed files with 6 additions and 0 deletions

5
src/graphql/client.ts Normal file
View File

@@ -0,0 +1,5 @@
import { createClient } from "@urql/core";
const client = createClient({
url: ''
});

View File

@@ -13,6 +13,7 @@ const useLogin = () => {
const handleLogin = (ev: any) => { const handleLogin = (ev: any) => {
ev.preventDefault(); ev.preventDefault();
setLoading(true); setLoading(true);
}; };
return { handleInput, loading, handleLogin, form }; return { handleInput, loading, handleLogin, form };