Skip to content

Commit

Permalink
[feat] introduce new remote user store impl - fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JayaShakthi97 committed Nov 19, 2024
1 parent e277aec commit 779540c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -88,22 +87,23 @@ const RadioGroupFieldAdapter: FunctionComponent<RadioGroupFieldAdapterPropsInter
{ ...formControlProps }
{ ...rest }
>
<FormLabel id={ `${ name }-radio-buttons-group`} { ...formLabelProps }>{ label }</FormLabel>
<FormLabel id={ `${ name }-radio-buttons-group` } { ...formLabelProps }>{ label }</FormLabel>
<RadioGroup
aria-labelledby={ `${ name }-radio-buttons-group`}
aria-labelledby={ `${ name }-radio-buttons-group` }
{ ...input }
>
{ options.map((option: RadioGroupOptionProps) => {
{ options.map((option: RadioGroupOptionProps, index: number) => {
const { label, value, ...restRadioGroupOptionProps } = option;

return (
<FormControlLabel
key={ `option-${ index }` }
value={ value }
label={ label }
control={ <Radio /> }
{ ...restRadioGroupOptionProps }
/>
)
);
}) }
</RadioGroup>
{ isError && <FormHelperText error>{ meta.error || meta.submitError }</FormHelperText> }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const TextFieldAdapter: FunctionComponent<TextFieldAdapterPropsInterface> = (
} }
inputProps={ {
style: { textTransform: uppercase ? "uppercase" : "none" }
}}
} }
{ ...rest }
/>
{ isError && <FormHelperText error>{ meta.error || meta.submitError }</FormHelperText> }
Expand Down

0 comments on commit 779540c

Please sign in to comment.