feat: replacement

This commit is contained in:
Ola Malmgren
2026-05-22 20:33:21 +02:00
parent 4d705a1005
commit f19e2d4e0d
26 changed files with 1951 additions and 20 deletions

View File

@@ -15,6 +15,7 @@ export default async function AdminLayout({
setRequestLocale(locale);
const session = await getSafeSession();
const t = await getTranslations('admin');
const tr = await getTranslations('adminReplacements');
// Public login page is handled in admin/login/page.tsx — but layout still wraps it.
// For non-login admin routes we redirect when not signed in via a route segment guard.
@@ -51,6 +52,12 @@ export default async function AdminLayout({
>
{t('nav.pickupSlots')}
</Link>
<Link
href="/admin/replacements"
className="rounded-md px-3 py-1.5 text-sm text-ink-600 hover:bg-ink-100"
>
{tr('navTitle')}
</Link>
<Link
href="/admin/settings"
className="rounded-md px-3 py-1.5 text-sm text-ink-600 hover:bg-ink-100"