fix(auth): show email option outside production
This commit is contained in:
@@ -30,8 +30,8 @@ export function AuthOtherOptionsDialog({
|
||||
mode,
|
||||
googleSlot,
|
||||
}: AuthOtherOptionsDialogProps) {
|
||||
const showDevEmailOption =
|
||||
AppEnvUtil.isDevelopment() && mode === "facebook" && onEmail;
|
||||
const showNonProductionEmailOption =
|
||||
!AppEnvUtil.isProduction() && mode === "facebook" && onEmail;
|
||||
|
||||
return (
|
||||
<BottomSheet
|
||||
@@ -55,7 +55,7 @@ export function AuthOtherOptionsDialog({
|
||||
</AuthSocialButton>
|
||||
) : null}
|
||||
|
||||
{showDevEmailOption ? (
|
||||
{showNonProductionEmailOption ? (
|
||||
<AuthSocialButton
|
||||
icon={<MdEmail size={20} color="var(--color-auth-text-primary)" />}
|
||||
onClick={() => {
|
||||
|
||||
Reference in New Issue
Block a user