Move DHCP component to a more logical location

This commit is contained in:
Pierre HUBERT 2024-01-04 10:19:42 +01:00
parent fdd005a3ec
commit baa0adf529
2 changed files with 6 additions and 6 deletions

View File

@ -14,11 +14,11 @@ import {
import { DHCPConfig, DHCPHost } from "../../api/NetworksApi";
import { ServerApi } from "../../api/ServerApi";
import { useConfirm } from "../../hooks/providers/ConfirmDialogProvider";
import { IPInput } from "../forms/IPInput";
import { MACInput } from "../forms/MACInput";
import { TextInput } from "../forms/TextInput";
import { IPInput } from "./IPInput";
import { MACInput } from "./MACInput";
import { TextInput } from "./TextInput";
export function DHCPHostReservations(p: {
export function NetDHCPHostReservations(p: {
editable: boolean;
dhcp: DHCPConfig;
version: 4 | 6;

View File

@ -13,7 +13,7 @@ import { IPInput } from "../forms/IPInput";
import { ResAutostartInput } from "../forms/ResAutostartInput";
import { SelectInput } from "../forms/SelectInput";
import { TextInput } from "../forms/TextInput";
import { DHCPHostReservations } from "./DHCPHostReservations";
import { NetDHCPHostReservations } from "../forms/NetDHCPHostReservations";
import { XMLAsyncWidget } from "../XMLWidget";
interface DetailsProps {
@ -374,7 +374,7 @@ function IPSection(p: {
{p.config?.dhcp && (p.editable || p.config.dhcp.hosts.length > 0) && (
<EditSection title="DHCP hosts reservations">
<DHCPHostReservations
<NetDHCPHostReservations
{...p}
dhcp={p.config.dhcp}
onChange={(d) => {