diff --git a/studio-v2/app/learn/page.tsx b/studio-v2/app/learn/page.tsx index 90e80b5..7a9f671 100644 --- a/studio-v2/app/learn/page.tsx +++ b/studio-v2/app/learn/page.tsx @@ -101,6 +101,7 @@ export default function LearnPage() { const [units, setUnits] = useState([]) const [isLoading, setIsLoading] = useState(true) const [error, setError] = useState(null) + const [showCreate, setShowCreate] = useState(false) const glassCard = isDark ? 'bg-white/10 backdrop-blur-xl border border-white/10' @@ -209,6 +210,25 @@ export default function LearnPage() { )} + {/* Create new unit button */} + {!isLoading && ( +
+ + + + + Neue Lernunit erstellen + +
+ )} + {!isLoading && units.length > 0 && (
{units.map(unit => ( diff --git a/studio-v2/components/Sidebar.tsx b/studio-v2/components/Sidebar.tsx index 7285910..ae48c87 100644 --- a/studio-v2/components/Sidebar.tsx +++ b/studio-v2/components/Sidebar.tsx @@ -61,16 +61,11 @@ export function Sidebar({ selectedTab = 'dashboard', onTabChange }: SidebarProps ), showMessagesBadge: true }, - { id: 'woerterbuch', labelKey: 'nav_woerterbuch', href: '/vocabulary', icon: ( + { id: 'lernmodule', labelKey: 'Lernmodule', href: '/learn', icon: ( )}, - { id: 'lernmodule', labelKey: 'nav_lernmodule', href: '/learn', icon: ( - - - - )}, { id: 'eltern', labelKey: 'nav_eltern', href: '/parent', icon: (