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'; import { BsGlobe2 } from 'react-icons/bs';
function generateSublist() { function generateSublist() {
const { t, i18n } = useTranslation(); const { i18n } = useTranslation();
const out: JSX.Element[] = []; const out: JSX.Element[] = [];
const languages = i18n.options.resources; const languages = i18n.options.resources;
for (var key in languages) { for (var key in languages) {
@ -27,4 +27,4 @@ export default function LanguagePicker() {
{generateSublist()} {generateSublist()}
</NavDropdown> </NavDropdown>
); );
} }

View File

@ -71,7 +71,7 @@ function convertToNavDropdown(sublist: NavInfoSublist) {
} }
function NavBar() { function NavBar() {
const { t, i18n } = useTranslation(); const { t } = useTranslation();
const navInfo = [ const navInfo = [
{displayText: t('multiTool.title'), icon: BsTools, dest: "/home", tooltip: t('home.multiTool.desc')}, {displayText: t('multiTool.title'), icon: BsTools, dest: "/home", tooltip: t('home.multiTool.desc')},