fix import
This commit is contained in:
parent
0a1739df3b
commit
81f66c5b9f
|
@ -3,7 +3,6 @@ import { useForm, Controller } from 'react-hook-form';
|
||||||
import { Trans, useTranslation } from 'react-i18next';
|
import { Trans, useTranslation } from 'react-i18next';
|
||||||
import i18n from 'i18next';
|
import i18n from 'i18next';
|
||||||
|
|
||||||
import i18next from 'i18next';
|
|
||||||
import Controls from './Controls';
|
import Controls from './Controls';
|
||||||
import AddressList from './AddressList';
|
import AddressList from './AddressList';
|
||||||
|
|
||||||
|
@ -24,7 +23,7 @@ import { DhcpInterface } from '../../initialState';
|
||||||
|
|
||||||
const validateInstallPort = (value: any) => {
|
const validateInstallPort = (value: any) => {
|
||||||
if (value < 1 || value > MAX_PORT) {
|
if (value < 1 || value > MAX_PORT) {
|
||||||
return i18next.t('form_error_port');
|
return i18n.t('form_error_port');
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue