fix: remove duplicate legal links on login and registration pages
The root layout already renders <LegalFooter/> (Impressum, Datenschutz, Nutzungsbedingungen) on every page. The login page defined its own local LegalFooter with the same three links, and the registration form carried a standalone Impressum link — so Impressum (and on login, all three) appeared twice. Drop the redundant per-page copies; the global footer covers them. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
a7df6bd60a
commit
f1ed89ea67
2 files changed
-15
No files matched your search
@@ -1,6 +1,5 @@
|
||||
import Link from "next/link";
|
||||
|
||||
import { env } from "@/config/env";
|
||||
import { LoginForm } from "@/modules/auth/public-forms";
|
||||
|
||||
export default function LoginPage() {
|
||||
@@ -22,17 +21,6 @@ export default function LoginPage() {
|
||||
<Link href="/registrieren">Neue Redaktion registrieren</Link>
|
||||
</nav>
|
||||
</section>
|
||||
<LegalFooter imprint={env.LEGAL_IMPRINT_URL} privacy={env.LEGAL_PRIVACY_URL} terms={env.LEGAL_TERMS_URL} />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
function LegalFooter({ imprint, privacy, terms }: { imprint: string; privacy: string; terms: string }) {
|
||||
return (
|
||||
<footer className="public-footer">
|
||||
<a href={imprint}>Impressum</a>
|
||||
<a href={privacy}>Datenschutz</a>
|
||||
<a href={terms}>Nutzungsbedingungen</a>
|
||||
</footer>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user