mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-07 04:12:11 +00:00
fix type
This commit is contained in:
@@ -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(() => {
|
||||
|
Reference in New Issue
Block a user