mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-01-23 00:06:08 +01:00
Fixed warnings
This commit is contained in:
parent
0d2d1726f8
commit
c404754e26
@ -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>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -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')},
|
||||
|
Loading…
Reference in New Issue
Block a user