|
@@ -6,6 +6,7 @@ import {
|
|
|
CheckboxField,
|
|
CheckboxField,
|
|
|
KeyValueArrayField,
|
|
KeyValueArrayField,
|
|
|
ArrayInputField,
|
|
ArrayInputField,
|
|
|
|
|
+ SelectField,
|
|
|
} from "./types";
|
|
} from "./types";
|
|
|
import TabRegion, { TabOption } from "../TabRegion";
|
|
import TabRegion, { TabOption } from "../TabRegion";
|
|
|
import Heading from "../values-form/Heading";
|
|
import Heading from "../values-form/Heading";
|
|
@@ -17,6 +18,7 @@ import KeyValueArray from "./field-components/KeyValueArray";
|
|
|
import styled from "styled-components";
|
|
import styled from "styled-components";
|
|
|
import SaveButton from "../SaveButton";
|
|
import SaveButton from "../SaveButton";
|
|
|
import ArrayInput from "./field-components/ArrayInput";
|
|
import ArrayInput from "./field-components/ArrayInput";
|
|
|
|
|
+import Select from "./field-components/Select";
|
|
|
|
|
|
|
|
interface Props {
|
|
interface Props {
|
|
|
leftTabOptions?: TabOption[];
|
|
leftTabOptions?: TabOption[];
|
|
@@ -55,6 +57,8 @@ const PorterForm: React.FC<Props> = (props) => {
|
|
|
return <KeyValueArray {...(bundledProps as KeyValueArrayField)} />;
|
|
return <KeyValueArray {...(bundledProps as KeyValueArrayField)} />;
|
|
|
case "array-input":
|
|
case "array-input":
|
|
|
return <ArrayInput {...(bundledProps as ArrayInputField)} />;
|
|
return <ArrayInput {...(bundledProps as ArrayInputField)} />;
|
|
|
|
|
+ case "select":
|
|
|
|
|
+ return <Select {...(bundledProps as SelectField)} />;
|
|
|
}
|
|
}
|
|
|
return <p>Not Implemented: {(field as any).type}</p>;
|
|
return <p>Not Implemented: {(field as any).type}</p>;
|
|
|
};
|
|
};
|