Playing with codegen
This commit is contained in:
5
src/graphql/client.ts
Normal file
5
src/graphql/client.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import { createClient } from "@urql/core";
|
||||||
|
|
||||||
|
const client = createClient({
|
||||||
|
url: ''
|
||||||
|
});
|
||||||
@@ -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 };
|
||||||
|
|||||||
Reference in New Issue
Block a user