From 1241f5092ebc45caf1295177153fa2983725051e Mon Sep 17 00:00:00 2001 From: Codex Agent Date: Fri, 23 Jan 2026 20:24:43 +0100 Subject: [PATCH] Remove Google helper badge in checkout auth --- .../marketing/checkout/steps/AuthStep.tsx | 66 +++++-------------- 1 file changed, 16 insertions(+), 50 deletions(-) diff --git a/resources/js/pages/marketing/checkout/steps/AuthStep.tsx b/resources/js/pages/marketing/checkout/steps/AuthStep.tsx index 6a99447..340db59 100644 --- a/resources/js/pages/marketing/checkout/steps/AuthStep.tsx +++ b/resources/js/pages/marketing/checkout/steps/AuthStep.tsx @@ -8,9 +8,7 @@ import LoginForm, { AuthUserPayload } from "../../../auth/LoginForm"; import RegisterForm, { RegisterSuccessPayload } from "../../../auth/RegisterForm"; import { Trans, useTranslation } from 'react-i18next'; import toast from 'react-hot-toast'; -import { ChevronDown, LoaderCircle } from "lucide-react"; -import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible"; -import { cn } from "@/lib/utils"; +import { LoaderCircle } from "lucide-react"; interface AuthStepProps { privacyHtml: string; @@ -64,7 +62,6 @@ export const AuthStep: React.FC = ({ privacyHtml, prefill, onClea const [mode, setMode] = useState<'login' | 'register'>('register'); const [isRedirectingToGoogle, setIsRedirectingToGoogle] = useState(false); const [isRedirectingToFacebook, setIsRedirectingToFacebook] = useState(false); - const [showGoogleHelper, setShowGoogleHelper] = useState(false); const showOauthControls = mode === 'register'; const authErrorTitle = facebookAuth?.error ? t('checkout.auth_step.facebook_error_title') @@ -96,16 +93,6 @@ export const AuthStep: React.FC = ({ privacyHtml, prefill, onClea } }, [facebookAuth?.error]); - useEffect(() => { - if (mode !== 'login') { - return; - } - - if (showGoogleHelper) { - setShowGoogleHelper(false); - } - }, [mode, showGoogleHelper]); - const handleLoginSuccess = (payload: AuthUserPayload | null) => { if (!payload) { return; @@ -194,7 +181,7 @@ export const AuthStep: React.FC = ({ privacyHtml, prefill, onClea return (
- +
{showOauthControls && (
-
- - - - -
+
)}
- {showOauthControls && ( - - - {t('checkout.auth_step.google_helper')} - - - )} - +
{(googleAuth?.error || facebookAuth?.error) && (