2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-07 04:12:11 +00:00
This commit is contained in:
Matthias Mair
2024-04-15 13:32:53 +02:00
parent fb029e67f1
commit 087100a9d0

View File

@@ -1,4 +1,4 @@
import { Select, SelectItem } from '@mantine/core';
import { Select } from '@mantine/core';
import { useEffect, useState } from 'react';
import { getSupportedLanguages } from '../../contexts/LanguageContext';
@@ -10,7 +10,7 @@ export function LanguageSelect({ width = 80 }: { width?: number }) {
state.language,
state.setLanguage
]);
const [langOptions, setLangOptions] = useState<SelectItem[]>([]);
const [langOptions, setLangOptions] = useState<any[]>([]);
// change global language on change
useEffect(() => {