Skip to content

Commit

Permalink
sort in login
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Oct 31, 2023
1 parent cb7f009 commit b9e985e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Oauth/AuthForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ const AuthForm: React.FC<AuthFormProps> = ({ formConfig, signInWithEth, flowStat
const hasEmail = loginMethods.includes(LoginMethod.EMAIL)

const nodes = []
if (hasEmail) nodes.push(<EmailLoginForm flowStatus={flowStatus} />)
if (hasEth)
nodes.push(
<ButtonEth
Expand All @@ -60,6 +59,7 @@ const AuthForm: React.FC<AuthFormProps> = ({ formConfig, signInWithEth, flowStat
primary={!hasEmail}
/>,
)
if (hasEmail) nodes.push(<EmailLoginForm flowStatus={flowStatus} />)
if (hasGoogle) nodes.push(<ButtonGoogle flowStatus={flowStatus} primary={!hasEmail && !hasEth} />)
return nodes
}, [disableEth, flowStatus, formConfig, processingSignIn, signInWithEth])
Expand Down

0 comments on commit b9e985e

Please sign in to comment.