fixed paddle locale
This commit is contained in:
@@ -6,7 +6,7 @@ import { useCheckoutWizard } from "../WizardContext";
|
||||
import type { GoogleProfilePrefill } from '../types';
|
||||
import LoginForm, { AuthUserPayload } from "../../../auth/LoginForm";
|
||||
import RegisterForm, { RegisterSuccessPayload } from "../../../auth/RegisterForm";
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Trans, useTranslation } from 'react-i18next';
|
||||
import toast from 'react-hot-toast';
|
||||
import { LoaderCircle } from "lucide-react";
|
||||
|
||||
@@ -104,10 +104,20 @@ export const AuthStep: React.FC<AuthStepProps> = ({ privacyHtml, googleProfile,
|
||||
if (isAuthenticated && authUser) {
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<Alert>
|
||||
<AlertTitle>{t('checkout.auth_step.already_logged_in_title')}</AlertTitle>
|
||||
<AlertDescription>
|
||||
{t('checkout.auth_step.already_logged_in_desc', { email: authUser?.email || '' })}
|
||||
<Alert className="border-primary/40 bg-primary/5">
|
||||
<AlertTitle className="text-xl font-semibold">
|
||||
{t('checkout.auth_step.already_logged_in_title')}
|
||||
</AlertTitle>
|
||||
<AlertDescription className="space-y-2 text-base leading-relaxed">
|
||||
<Trans
|
||||
t={t}
|
||||
i18nKey="checkout.auth_step.already_logged_in_body"
|
||||
components={{ strong: <span className="font-semibold" /> }}
|
||||
values={{ email: authUser?.email || '' }}
|
||||
/>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
{t('checkout.auth_step.already_logged_in_hint')}
|
||||
</p>
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
<div className="flex justify-end">
|
||||
|
||||
Reference in New Issue
Block a user