diff --git a/modules/form/src/components/adapters/radio-group-field-adapter.tsx b/modules/form/src/components/adapters/radio-group-field-adapter.tsx index 4e4f7b51a07..7055538807c 100644 --- a/modules/form/src/components/adapters/radio-group-field-adapter.tsx +++ b/modules/form/src/components/adapters/radio-group-field-adapter.tsx @@ -19,13 +19,12 @@ import FormControl, { FormControlProps } from "@oxygen-ui/react/FormControl"; import FormControlLabel, { FormControlLabelProps } from "@oxygen-ui/react/FormControlLabel"; import FormHelperText from "@oxygen-ui/react/FormHelperText"; +import FormLabel, { FormLabelProps } from "@oxygen-ui/react/FormLabel"; import Radio from "@oxygen-ui/react/Radio"; -import RadioGroup, { RadioGroupProps } from "@oxygen-ui/react/RadioGroup"; +import RadioGroup from "@oxygen-ui/react/RadioGroup"; import { IdentifiableComponentInterface } from "@wso2is/core/models"; import React, { FunctionComponent, ReactElement } from "react"; import { FieldRenderProps } from "react-final-form"; -import FormLabel, { FormLabelProps } from "@oxygen-ui/react/FormLabel"; -import InputLabel from "@oxygen-ui/react/InputLabel"; /** * Interface for the DropDownItem. @@ -88,22 +87,23 @@ const RadioGroupFieldAdapter: FunctionComponent - { label } + { label } - { options.map((option: RadioGroupOptionProps) => { + { options.map((option: RadioGroupOptionProps, index: number) => { const { label, value, ...restRadioGroupOptionProps } = option; return ( } { ...restRadioGroupOptionProps } /> - ) + ); }) } { isError && { meta.error || meta.submitError } } diff --git a/modules/form/src/components/adapters/text-field-adapter.tsx b/modules/form/src/components/adapters/text-field-adapter.tsx index e6f4fa398b7..c5a66366615 100644 --- a/modules/form/src/components/adapters/text-field-adapter.tsx +++ b/modules/form/src/components/adapters/text-field-adapter.tsx @@ -84,7 +84,7 @@ const TextFieldAdapter: FunctionComponent = ( } } inputProps={ { style: { textTransform: uppercase ? "uppercase" : "none" } - }} + } } { ...rest } /> { isError && { meta.error || meta.submitError } }