misc: only display recover when email login is enabled

This commit is contained in:
Sheen Capadngan
2024-06-29 02:12:09 +08:00
parent 04f54479cd
commit 5a1e43be44
@@ -352,13 +352,15 @@ export const InitialStep = ({ setStep, email, setEmail, password, setPassword }:
) : ( ) : (
<div className="mt-4" /> <div className="mt-4" />
)} )}
<div className="mt-2 flex flex-row text-sm text-bunker-400"> {shouldDisplayLoginMethod(LoginMethod.EMAIL) && (
<Link href="/verify-email"> <div className="mt-2 flex flex-row text-sm text-bunker-400">
<span className="cursor-pointer duration-200 hover:text-bunker-200 hover:underline hover:decoration-primary-700 hover:underline-offset-4"> <Link href="/verify-email">
Forgot password? Recover your account <span className="cursor-pointer duration-200 hover:text-bunker-200 hover:underline hover:decoration-primary-700 hover:underline-offset-4">
</span> Forgot password? Recover your account
</Link> </span>
</div> </Link>
</div>
)}
</form> </form>
); );
}; };