Seite läuft wieder, menü bringt keine fehler mehr
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import React from 'react';
|
||||
import { Head, Link } from '@inertiajs/react';
|
||||
import { Head, Link, usePage } from '@inertiajs/react';
|
||||
import MarketingLayout from '@/layouts/MarketingLayout';
|
||||
import { usePage } from '@inertiajs/react';
|
||||
import { useLocalizedRoutes } from '@/hooks/useLocalizedRoutes';
|
||||
|
||||
const Datenschutz: React.FC = () => {
|
||||
const { props } = usePage();
|
||||
const { __ } = props as any; // Für i18n
|
||||
const { localizedPath } = useLocalizedRoutes();
|
||||
|
||||
return (
|
||||
<MarketingLayout title={__('legal.datenschutz_title')}>
|
||||
@@ -21,7 +22,7 @@ const Datenschutz: React.FC = () => {
|
||||
</p>
|
||||
<p className="mb-4 font-sans-marketing">{__('legal.data_retention')}</p>
|
||||
<p className="mb-4 font-sans-marketing">
|
||||
{__('legal.rights')} <Link href="/de/kontakt">{__('legal.contact')}</Link>.
|
||||
{__('legal.rights')} <Link href={localizedPath('/kontakt')}>{__('legal.contact')}</Link>.
|
||||
</p>
|
||||
<p className="mb-4 font-sans-marketing">{__('legal.cookies')}</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user