From a5bf54f82d897771a2742198389bc3d3de888af8 Mon Sep 17 00:00:00 2001 From: Julian Cuni Date: Sun, 4 Sep 2022 00:31:39 +0200 Subject: [PATCH] Playing with codegen --- src/graphql/client.ts | 5 +++++ src/hooks/auth/login.hook.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 src/graphql/client.ts diff --git a/src/graphql/client.ts b/src/graphql/client.ts new file mode 100644 index 0000000..2ad1fd4 --- /dev/null +++ b/src/graphql/client.ts @@ -0,0 +1,5 @@ +import { createClient } from "@urql/core"; + +const client = createClient({ + url: '' +}); \ No newline at end of file diff --git a/src/hooks/auth/login.hook.ts b/src/hooks/auth/login.hook.ts index 8b4cb7d..b1733c2 100644 --- a/src/hooks/auth/login.hook.ts +++ b/src/hooks/auth/login.hook.ts @@ -13,6 +13,7 @@ const useLogin = () => { const handleLogin = (ev: any) => { ev.preventDefault(); setLoading(true); + }; return { handleInput, loading, handleLogin, form };