Seite läuft wieder, menü bringt keine fehler mehr
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user