Marketing: route registration to checkout
This commit is contained in:
@@ -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]"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user