Remove AdminMenu from public site header

Hide admin interface completely from public site. Admins access /admin/login
directly. Cleaner separation between customer-facing UI and back office.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Andymick
2026-07-15 19:18:51 +01:00
co-authored by Claude Haiku 4.5
parent 158c9cf934
commit 339b2d960e
3 changed files with 4 additions and 4 deletions
+3 -1
View File
@@ -12,7 +12,9 @@
"Bash(git restore *)", "Bash(git restore *)",
"Bash(git reset *)", "Bash(git reset *)",
"Bash(git checkout *)", "Bash(git checkout *)",
"Bash(git commit -m ' *)" "Bash(git commit -m ' *)",
"Bash(git commit -m 'Remove AdminMenu from public site header *)",
"Bash(git push *)"
] ]
} }
} }
-2
View File
@@ -1,7 +1,6 @@
import Link from 'next/link'; import Link from 'next/link';
import Image from 'next/image'; import Image from 'next/image';
import CartButton from './CartButton'; import CartButton from './CartButton';
import AdminMenu from './AdminMenu';
import AccountMenu from './AccountMenu'; import AccountMenu from './AccountMenu';
import ThemeToggle from './ThemeToggle'; import ThemeToggle from './ThemeToggle';
import NavDropdown from './NavDropdown'; import NavDropdown from './NavDropdown';
@@ -73,7 +72,6 @@ export default async function Header() {
<div className="hidden md:block"> <div className="hidden md:block">
<AccountMenu customer={customer ? { name: customer.name, email: customer.email } : null} /> <AccountMenu customer={customer ? { name: customer.name, email: customer.email } : null} />
</div> </div>
<AdminMenu />
<ThemeToggle /> <ThemeToggle />
<CartButton /> <CartButton />
</div> </div>
+1 -1
View File
File diff suppressed because one or more lines are too long