feat(06-01): add TemplatePage, routing, sidebar nav, and i18n translations

- Create TemplatePage with add form (category/tier/amount), items table, and empty state
- Add /template route to App.tsx with TemplatePage component
- Add Template nav item to sidebar (between Categories and Settings)
- Add template and nav.template i18n keys for EN and DE
- Fix unused import in useTemplate hook
This commit is contained in:
2026-03-12 13:04:52 +01:00
parent 0af9431435
commit 924e01c983
6 changed files with 260 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
import { useTranslation } from 'react-i18next'
import { Link, useLocation } from 'react-router-dom'
import { LayoutDashboard, Tags, Settings, LogOut } from 'lucide-react'
import { LayoutDashboard, Tags, FileText, Settings, LogOut } from 'lucide-react'
import {
Sidebar,
SidebarContent,
@@ -30,6 +30,7 @@ export function AppLayout({ auth, children }: Props) {
const navItems = [
{ path: '/', label: t('nav.dashboard'), icon: LayoutDashboard },
{ path: '/categories', label: t('nav.categories'), icon: Tags },
{ path: '/template', label: t('nav.template'), icon: FileText },
{ path: '/settings', label: t('nav.settings'), icon: Settings },
]