fix dhcp form

This commit is contained in:
Ildar Kamalov
2025-01-24 17:09:54 +03:00
parent f78dc10c2a
commit eb9b9b6c2b
5 changed files with 165 additions and 135 deletions

View File

@@ -168,7 +168,7 @@ const Dhcp = () => {
}
};
const handleSubmit = (values: any) => {
const handleSubmit = (values: DhcpFormValues) => {
dispatch(
setDhcpConfig({
interface_name,
@@ -293,7 +293,6 @@ const Dhcp = () => {
<FormProvider {...methods}>
<Interfaces />
<Card title={t('dhcp_ipv4_settings')} bodyType="card-body box-body--settings">
<div>
<FormDHCPv4
@@ -304,7 +303,6 @@ const Dhcp = () => {
/>
</div>
</Card>
<Card title={t('dhcp_ipv6_settings')} bodyType="card-body box-body--settings">
<div>
<FormDHCPv6