Remove admin entrypoints from public site
CI / quality (push) Has been cancelled

This commit is contained in:
MOH
2026-03-13 17:53:01 +01:00
parent fef44ded80
commit 35734bd2d9
3 changed files with 3 additions and 31 deletions
+1 -11
View File
@@ -2,7 +2,6 @@ import Link from "next/link";
import { useLocale, useTranslations } from "next-intl";
import { Container } from "@/components/layout/container";
import { buildAdminUrl } from "@/lib/admin-routing";
import { getLocalizedPath } from "@/lib/locale";
const navItems = [
@@ -12,11 +11,7 @@ const navItems = [
{ key: "contact", path: "/contact" },
];
type SiteFooterProps = {
isAdmin?: boolean;
};
export function SiteFooter({ isAdmin = false }: SiteFooterProps) {
export function SiteFooter() {
const locale = useLocale();
const tNav = useTranslations("navigation");
const tFooter = useTranslations("footer");
@@ -34,11 +29,6 @@ export function SiteFooter({ isAdmin = false }: SiteFooterProps) {
{tNav(item.key)}
</Link>
))}
{isAdmin ? (
<a href={buildAdminUrl()} className="text-muted-foreground hover:text-foreground">
{tNav("admin")}
</a>
) : null}
</nav>
<div className="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
<p className="text-xs text-muted-foreground/80">