Skip to content

Commit

Permalink
resolve todo
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Oct 24, 2023
1 parent 1381d94 commit 581f953
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pages/Oauth/AuthForm/EmailLoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const EmailLoginForm = ({ flowStatus }: { flowStatus: FlowStatus }) => {
setIsShowVerify(false)
}

const onVerifyEmail = (e: React.MouseEvent) => {
const onVerifyEmail = (e?: React.MouseEvent) => {
e?.preventDefault?.()
if (errorInput || isShowVerify || !inputEmail) return
setIsShowVerify(true)
Expand All @@ -37,7 +37,7 @@ const EmailLoginForm = ({ flowStatus }: { flowStatus: FlowStatus }) => {

const onVerifyCode = async (data: { code: string; email: string }) => {
const resp = await KyberOauth2.oauthUi.loginEmail(data)
console.debug('resp loginEmail', resp)
console.debug('oauth resp login email', resp)
}

const onSendCode = async ({ email }: { email: string }) => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Oauth/AuthForm/useAutoSignIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const useAutoSignIn = ({
method,
flowStatus: { flowReady, autoLoginMethod },
}: {
onClick: (e?: any) => void // todo
onClick: (e?: React.MouseEvent) => void
method: LoginMethod
flowStatus: FlowStatus
}) => {
Expand Down

0 comments on commit 581f953

Please sign in to comment.