From 81f66c5b9f1e7fee683653dd011893469475db19 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Thu, 12 Dec 2024 15:09:28 +0300 Subject: [PATCH] fix import --- client/src/install/Setup/Settings.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/install/Setup/Settings.tsx b/client/src/install/Setup/Settings.tsx index 537f7e63..6b590dbe 100644 --- a/client/src/install/Setup/Settings.tsx +++ b/client/src/install/Setup/Settings.tsx @@ -3,7 +3,6 @@ import { useForm, Controller } from 'react-hook-form'; import { Trans, useTranslation } from 'react-i18next'; import i18n from 'i18next'; -import i18next from 'i18next'; import Controls from './Controls'; import AddressList from './AddressList'; @@ -24,7 +23,7 @@ import { DhcpInterface } from '../../initialState'; const validateInstallPort = (value: any) => { if (value < 1 || value > MAX_PORT) { - return i18next.t('form_error_port'); + return i18n.t('form_error_port'); } return undefined; }; @@ -118,7 +117,7 @@ const Settings: React.FC = ({ const webPortVal = watch("web.port"); const dnsIpVal = watch("dns.ip"); const dnsPortVal = watch("dns.port"); - + useEffect(() => { validateForm({ web: {