From 7c21c5cf1ac7b3f01c01eaf9999e00ec5f923944 Mon Sep 17 00:00:00 2001 From: chenos Date: Thu, 2 Jun 2022 21:54:18 +0800 Subject: [PATCH] fix(client): export useSignin and useSignup --- packages/core/client/src/user/SigninPage.tsx | 2 +- packages/core/client/src/user/SignupPage.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/client/src/user/SigninPage.tsx b/packages/core/client/src/user/SigninPage.tsx index 8cb87cb2f..4ca16a583 100644 --- a/packages/core/client/src/user/SigninPage.tsx +++ b/packages/core/client/src/user/SigninPage.tsx @@ -59,7 +59,7 @@ const schema: ISchema = { }, }; -const useSignin = () => { +export const useSignin = () => { const location = useLocation(); const history = useHistory(); const form = useForm(); diff --git a/packages/core/client/src/user/SignupPage.tsx b/packages/core/client/src/user/SignupPage.tsx index 6b88ec8b3..28a2d4b6a 100644 --- a/packages/core/client/src/user/SignupPage.tsx +++ b/packages/core/client/src/user/SignupPage.tsx @@ -85,7 +85,7 @@ const schema: ISchema = { }, }; -const useSignup = () => { +export const useSignup = () => { const history = useHistory(); const form = useForm(); const api = useAPIClient();