Fixed warnings

This commit is contained in:
Saud Fatayerji 2023-11-05 23:22:17 +03:00
parent 0d2d1726f8
commit c404754e26
2 changed files with 3 additions and 3 deletions

View File

@ -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()}
</NavDropdown>
);
}
}

View File

@ -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')},