diff --git a/ui/src/components/ControlWrapper.tsx b/ui/src/components/ControlWrapper.tsx index c3ee6925b..012c2b985 100644 --- a/ui/src/components/ControlWrapper.tsx +++ b/ui/src/components/ControlWrapper.tsx @@ -6,8 +6,6 @@ import CONTROL_TYPE_MAP, { ComponentTypes } from '../constants/ControlTypeMap'; import { AnyEntity, UtilControlWrapper } from './BaseFormTypes'; import { AcceptableFormValueOrNullish } from '../types/components/shareableTypes'; -const CustomElement = styled.div``; - const ControlGroupWrapper = styled(ControlGroup).attrs((props: { dataName: string }) => ({ 'data-name': props.dataName, }))` @@ -110,13 +108,12 @@ class ControlWrapper extends React.PureComponent { - {rowView} + {rowView} ) ); diff --git a/ui/src/components/MultiInputComponent/MultiInputComponent.tsx b/ui/src/components/MultiInputComponent/MultiInputComponent.tsx index 4a6caef3b..b090a8c75 100644 --- a/ui/src/components/MultiInputComponent/MultiInputComponent.tsx +++ b/ui/src/components/MultiInputComponent/MultiInputComponent.tsx @@ -16,6 +16,7 @@ const WaitSpinnerWrapper = styled(WaitSpinner)` `; export interface MultiInputComponentProps { + id?: string; handleChange: (field: string, data: string) => void; field: string; controlOptions: { @@ -40,6 +41,7 @@ export interface MultiInputComponentProps { function MultiInputComponent(props: MultiInputComponentProps) { const { + id, field, disabled = false, error = false, @@ -135,6 +137,7 @@ function MultiInputComponent(props: MultiInputComponentProps) { return ( <> void; field: string; @@ -31,6 +32,7 @@ class RadioComponent extends Component { render() { return ( void; field: string; @@ -15,13 +16,14 @@ interface TextAreadComponentProps { disabled?: boolean; } -function TextAreaComponent(props: TextAreadComponentProps) { +function TextAreaComponent(props: TextAreaComponentProps) { const handleChange = (e: unknown, { value }: { value: string }) => { props.handleChange(props.field, value); }; return ( { @@ -24,6 +25,7 @@ class TextComponent extends Component { render() { return (