diff --git a/app/[locale]/(site)/layout.tsx b/app/[locale]/(site)/layout.tsx index b325767..bf3cc79 100644 --- a/app/[locale]/(site)/layout.tsx +++ b/app/[locale]/(site)/layout.tsx @@ -38,12 +38,11 @@ export default async function SiteLayout({ children, params }: SiteLayoutProps)
{children}
- +
); } diff --git a/components/layout/site-footer.tsx b/components/layout/site-footer.tsx index 48cef6d..b85fc4e 100644 --- a/components/layout/site-footer.tsx +++ b/components/layout/site-footer.tsx @@ -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)} ))} - {isAdmin ? ( - - {tNav("admin")} - - ) : null}

diff --git a/components/layout/site-header.tsx b/components/layout/site-header.tsx index d58ede6..2aac186 100644 --- a/components/layout/site-header.tsx +++ b/components/layout/site-header.tsx @@ -1,7 +1,7 @@ "use client"; import { AnimatePresence, motion, useReducedMotion } from "framer-motion"; -import { LayoutDashboard, Menu, X } from "lucide-react"; +import { Menu, X } from "lucide-react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { useLocale, useTranslations } from "next-intl"; @@ -13,7 +13,6 @@ import { SiteLogo } from "@/components/layout/site-logo"; import { SoundToggle } from "@/components/sound-toggle"; import { ThemeToggle } from "@/components/theme-toggle"; import { Button } from "@/components/ui/button"; -import { buildAdminUrl } from "@/lib/admin-routing"; import { getLocalizedPath, stripLocalePrefix } from "@/lib/locale"; import { toast } from "@/lib/toast"; import { cn } from "@/lib/utils"; @@ -33,7 +32,6 @@ const disabledMobileNavItemClassName = "relative inline-flex cursor-not-allowed items-center justify-center rounded-nested px-4 py-3 text-sm font-medium text-foreground/55"; type SiteHeaderProps = { - isAdmin?: boolean; lightLogoUrl?: string | null; darkLogoUrl?: string | null; }; @@ -142,7 +140,6 @@ function NavLinks({ } export function SiteHeader({ - isAdmin = false, lightLogoUrl, darkLogoUrl, }: SiteHeaderProps) { @@ -313,13 +310,6 @@ export function SiteHeader({ variant="ghost" className={desktopControlButtonClassName} /> - {isAdmin ? ( - - ) : null}

@@ -463,13 +453,6 @@ export function SiteHeader({ variant="ghost" className={mobileControlButtonClassName} /> - {isAdmin ? ( - - ) : null}