Fix: destructure setLanguage from useLanguage
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -27,7 +27,7 @@ const parentT: Record<string, Record<string, string>> = {
|
||||
|
||||
export default function ParentPage() {
|
||||
const { isDark } = useTheme()
|
||||
const { language } = useLanguage()
|
||||
const { language, setLanguage } = useLanguage()
|
||||
const [units, setUnits] = useState<LearningUnit[]>([])
|
||||
const [isLoading, setIsLoading] = useState(true)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user