diff --git a/client-tauri/src/components/LanguagePicker.tsx b/client-tauri/src/components/LanguagePicker.tsx index 2610b3ec..b3396181 100644 --- a/client-tauri/src/components/LanguagePicker.tsx +++ b/client-tauri/src/components/LanguagePicker.tsx @@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next'; import { BsGlobe2 } from 'react-icons/bs'; function generateSublist() { - const { t, i18n } = useTranslation(); + const { i18n } = useTranslation(); const out: JSX.Element[] = []; const languages = i18n.options.resources; for (var key in languages) { @@ -27,4 +27,4 @@ export default function LanguagePicker() { {generateSublist()} ); -} \ No newline at end of file +} diff --git a/client-tauri/src/components/NavBar.tsx b/client-tauri/src/components/NavBar.tsx index cafc3fe9..6019079f 100644 --- a/client-tauri/src/components/NavBar.tsx +++ b/client-tauri/src/components/NavBar.tsx @@ -71,7 +71,7 @@ function convertToNavDropdown(sublist: NavInfoSublist) { } function NavBar() { - const { t, i18n } = useTranslation(); + const { t } = useTranslation(); const navInfo = [ {displayText: t('multiTool.title'), icon: BsTools, dest: "/home", tooltip: t('home.multiTool.desc')},