Skip to content

Commit

Permalink
structure
Browse files Browse the repository at this point in the history
  • Loading branch information
salimkanoun committed Dec 23, 2024
1 parent adc5cf1 commit 775a6c4
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 17 deletions.
Empty file.
Empty file.
24 changes: 7 additions & 17 deletions src/autorouting/AutoRoutingRoot.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -7,8 +7,8 @@ const AutoRoutingRoot = () => {
const [eventType, setEventType] = useState<AutoroutingEventType|null>(null);
const [isActivated, setIsActivated] = useState(false);
const [condition, setCondition] = useState<RuleCondition>(RuleCondition.AND);
const [rules, setRules] = useState<AutoRoutingRule[]>("value1");
const [destinations, setDestinations] = useState<Destination[]>("value1");
const [rules, setRules] = useState<AutoRoutingRule[]>([]);
const [destinations, setDestinations] = useState<Destination[]>([]);

const eventTypeOptions = [
{ label: "New Instance", value: AutoroutingEventType.NEW_INSTANCE },
Expand Down Expand Up @@ -53,15 +53,7 @@ const AutoRoutingRoot = () => {

return (
<div
style={{
padding: "20px",
fontFamily: "Arial, sans-serif",
maxWidth: "600px",
margin: "auto",
backgroundColor: "#f9f9f9",
borderRadius: "8px",
boxShadow: "0 2px 4px rgba(0, 0, 0, 0.1)",
}}
className=""
>
<Input
label="Name : "
Expand All @@ -79,12 +71,10 @@ const AutoRoutingRoot = () => {
placeholder="Select Label(s)"
aria-label="Labels"
/>
<label
<Label
value="Activated"
htmlFor="activatedSwitch"
style={{ display: "block", marginBottom: "8px", fontWeight: "bold" }}
>
Activated:{" "}
</label>
/ >
<input
id="activatedSwitch"
type="checkbox"
Expand Down
Empty file.
15 changes: 15 additions & 0 deletions src/autorouting/AutoRoutingRulesTable.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { RuleCondition } from "./types";

type AutoRoutingRulesTableProps = {
rules : RuleCondition[]
}

const AutoRoutingRulesTable = () => {

return (
<>
</>
)
}

export default AutoRoutingRulesTable;

0 comments on commit 775a6c4

Please sign in to comment.