diff --git a/src/autorouting/AutoRoutingDestinationForm.tsx b/src/autorouting/AutoRoutingDestinationForm.tsx new file mode 100644 index 0000000..e69de29 diff --git a/src/autorouting/AutoRoutingDestinationTables.tsx b/src/autorouting/AutoRoutingDestinationTables.tsx new file mode 100644 index 0000000..e69de29 diff --git a/src/autorouting/AutoRoutingRoot.tsx b/src/autorouting/AutoRoutingRoot.tsx index fec0456..c752d08 100644 --- a/src/autorouting/AutoRoutingRoot.tsx +++ b/src/autorouting/AutoRoutingRoot.tsx @@ -1,4 +1,4 @@ -import React, { useState, ChangeEvent } from "react"; +import { useState, ChangeEvent } from "react"; import { Input, SelectInput, Label } from "../ui"; import { AutoroutingEventType, AutoRoutingRule, Destination, RuleCondition } from "./types"; @@ -7,8 +7,8 @@ const AutoRoutingRoot = () => { const [eventType, setEventType] = useState(null); const [isActivated, setIsActivated] = useState(false); const [condition, setCondition] = useState(RuleCondition.AND); - const [rules, setRules] = useState("value1"); - const [destinations, setDestinations] = useState("value1"); + const [rules, setRules] = useState([]); + const [destinations, setDestinations] = useState([]); const eventTypeOptions = [ { label: "New Instance", value: AutoroutingEventType.NEW_INSTANCE }, @@ -53,15 +53,7 @@ const AutoRoutingRoot = () => { return (
{ placeholder="Select Label(s)" aria-label="Labels" /> - + / > { + + return ( + <> + + ) +} + +export default AutoRoutingRulesTable; \ No newline at end of file