Marketing: route registration to checkout

This commit is contained in:
Codex Agent
2026-01-06 08:36:55 +01:00
parent 34eb2b94b3
commit f89f6d6223
14 changed files with 105 additions and 328 deletions

View File

@@ -10,8 +10,8 @@ import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
import AuthLayout from '@/layouts/auth-layout';
import AppLayout from '@/layouts/app/AppLayout';
import { register } from '@/routes';
import { request } from '@/routes/password';
import { useLocalizedRoutes } from '@/hooks/useLocalizedRoutes';
import { LoaderCircle } from 'lucide-react';
import toast from 'react-hot-toast';
@@ -27,6 +27,7 @@ export default function Login({ status, canResetPassword }: LoginProps) {
const { t } = useTranslation('auth');
const page = usePage<{ flash?: { verification?: { status: string; title?: string; message?: string } } }>();
const verificationFlash = page.props.flash?.verification;
const { localizedPath } = useLocalizedRoutes();
const { data, setData, post, processing, errors, clearErrors } = useForm({
login: '',
@@ -278,7 +279,7 @@ export default function Login({ status, canResetPassword }: LoginProps) {
<div className="rounded-2xl border border-gray-200/60 bg-gray-50/80 p-4 text-center text-sm text-muted-foreground shadow-inner dark:border-gray-800/70 dark:bg-gray-900/60">
{t('login.no_account')}{' '}
<TextLink
href={register()}
href={localizedPath('/packages')}
tabIndex={5}
className="font-semibold text-[#ff5f87] transition hover:text-[#ff3b6d]"
>