Seite läuft wieder, menü bringt keine fehler mehr

This commit is contained in:
Codex Agent
2025-10-07 11:52:03 +02:00
parent 5ee510b05d
commit dd5545605c
33 changed files with 1902 additions and 1361 deletions

View File

@@ -1,17 +1,21 @@
import React, { useState } from 'react';
import React, { useMemo, useState } from 'react';
import { Link } from '@inertiajs/react';
import { usePage } from '@inertiajs/react';
import { useLocalizedRoutes } from '@/hooks/useLocalizedRoutes';
const MarketingHeader: React.FC = () => {
const [isOpen, setIsOpen] = useState(false);
const { url } = usePage();
usePage();
const { localizedPath } = useLocalizedRoutes();
const occasions = [
{ href: '/de/occasions/weddings', label: 'Hochzeiten' },
{ href: '/de/occasions/birthdays', label: 'Geburtstage' },
{ href: '/de/occasions/corporate-events', label: 'Firmenevents' },
{ href: '/de/occasions/family-celebrations', label: 'Familienfeiern' },
];
const occasions = useMemo(
() => [
{ href: localizedPath('/anlaesse/hochzeit'), label: 'Hochzeiten' },
{ href: localizedPath('/anlaesse/geburtstag'), label: 'Geburtstage' },
{ href: localizedPath('/anlaesse/firmenevent'), label: 'Firmenevents' },
],
[localizedPath]
);
return (
<header className="bg-white shadow-md sticky top-0 z-50">