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 Link from "next/link";
|
||||||
|
|
||||||
import { env } from "@/config/env";
|
|
||||||
import { LoginForm } from "@/modules/auth/public-forms";
|
import { LoginForm } from "@/modules/auth/public-forms";
|
||||||
|
|
||||||
export default function LoginPage() {
|
export default function LoginPage() {
|
||||||
@@ -22,17 +21,6 @@ export default function LoginPage() {
|
|||||||
<Link href="/registrieren">Neue Redaktion registrieren</Link>
|
<Link href="/registrieren">Neue Redaktion registrieren</Link>
|
||||||
</nav>
|
</nav>
|
||||||
</section>
|
</section>
|
||||||
<LegalFooter imprint={env.LEGAL_IMPRINT_URL} privacy={env.LEGAL_PRIVACY_URL} terms={env.LEGAL_TERMS_URL} />
|
|
||||||
</main>
|
</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>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -139,9 +139,6 @@ export function RegistrationForm({
|
|||||||
<p className="form-note">
|
<p className="form-note">
|
||||||
Wir informieren Sie auf der nächsten Seite über den weiteren Ablauf.
|
Wir informieren Sie auf der nächsten Seite über den weiteren Ablauf.
|
||||||
</p>
|
</p>
|
||||||
<a className="legal-link" href={legalUrls.imprint} rel="noreferrer" target="_blank">
|
|
||||||
Impressum
|
|
||||||
</a>
|
|
||||||
</form>
|
</form>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user