fix(auth): enable dev email login testing

This commit is contained in:
2026-06-22 11:27:13 +08:00
parent 61fd4ca916
commit d1228324ca
6 changed files with 67 additions and 37 deletions
+3 -1
View File
@@ -18,6 +18,8 @@ export function AuthPanel() {
const switchToFacebook = () =>
dispatch({ type: "AuthPanelModeChanged", mode: "facebook" });
const switchToEmail = () =>
dispatch({ type: "AuthPanelModeChanged", mode: "email" });
const handleBack = () => {
if (state.authPanelMode === "email") {
@@ -32,7 +34,7 @@ export function AuthPanel() {
<AuthBackButton onClick={handleBack} />
{state.authPanelMode === "facebook" ? (
<AuthFacebookPanel />
<AuthFacebookPanel onSwitchToEmail={switchToEmail} />
) : (
<AuthEmailPanel
onSwitchToFacebook={() => {