fix(auth): hide email option in other sign-in dialog

This commit is contained in:
2026-06-17 17:07:53 +08:00
parent b34533b242
commit d074f1a813
4 changed files with 5 additions and 29 deletions
+1 -3
View File
@@ -16,8 +16,6 @@ export function AuthPanel() {
const dispatch = useAuthDispatch();
const router = useRouter();
const switchToEmail = () =>
dispatch({ type: "AuthPanelModeChanged", mode: "email" });
const switchToFacebook = () =>
dispatch({ type: "AuthPanelModeChanged", mode: "facebook" });
@@ -41,7 +39,7 @@ export function AuthPanel() {
</button>
{state.authPanelMode === "facebook" ? (
<AuthFacebookPanel onSwitchToEmail={switchToEmail} />
<AuthFacebookPanel />
) : (
<AuthEmailPanel
onSwitchToFacebook={() => {