fix(auth): hide email option in other sign-in dialog
This commit is contained in:
@@ -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={() => {
|
||||
|
||||
Reference in New Issue
Block a user