codex has reworked checkout, but frontend doesnt work

This commit is contained in:
Codex Agent
2025-10-05 20:39:30 +02:00
parent fdaa2bec62
commit d70faf7a9d
35 changed files with 2105 additions and 430 deletions

View File

@@ -1,4 +1,4 @@
import React from 'react';
import React from 'react';
import { Head, Link, useForm, usePage } from '@inertiajs/react';
import { useTranslation } from 'react-i18next';
import MarketingLayout from '@/layouts/marketing/MarketingLayout';
@@ -15,7 +15,7 @@ const Kontakt: React.FC = () => {
const handleSubmit = (e: React.FormEvent) => {
e.preventDefault();
post('/kontakt', {
post(localizedPath('/kontakt'), {
onSuccess: () => reset(),
});
};
@@ -85,7 +85,7 @@ const Kontakt: React.FC = () => {
</div>
)}
<div className="mt-8 text-center">
<Link href="/" className="text-[#FFB6C1] hover:underline font-sans-marketing">{t('kontakt.back_home')}</Link>
<Link href={localizedPath('/')} className="text-[#FFB6C1] hover:underline font-sans-marketing">{t('kontakt.back_home')}</Link>
</div>
</div>
</div>