Fix: destructure setLanguage from useLanguage

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-04-26 20:15:10 +02:00
parent f2346b88cd
commit 3619ddfdad

View File

@@ -27,7 +27,7 @@ const parentT: Record<string, Record<string, string>> = {
export default function ParentPage() { export default function ParentPage() {
const { isDark } = useTheme() const { isDark } = useTheme()
const { language } = useLanguage() const { language, setLanguage } = useLanguage()
const [units, setUnits] = useState<LearningUnit[]>([]) const [units, setUnits] = useState<LearningUnit[]>([])
const [isLoading, setIsLoading] = useState(true) const [isLoading, setIsLoading] = useState(true)