diff --git a/ui-core/src/components/inputs/RadioButton.tsx b/ui-core/src/components/inputs/RadioButton.tsx index 7d5acfa8..0aa29df0 100644 --- a/ui-core/src/components/inputs/RadioButton.tsx +++ b/ui-core/src/components/inputs/RadioButton.tsx @@ -4,10 +4,7 @@ import cx from 'classnames'; import useFocusByTab from '../../hooks/useFocusByTab'; -export type RadioButtonProps = Omit< - React.InputHTMLAttributes, - 'value' -> & { +export type RadioButtonProps = Omit, 'value'> & { label: string; value: string; hint?: string; diff --git a/ui-core/src/components/inputs/RadioGroup.tsx b/ui-core/src/components/inputs/RadioGroup.tsx index 6fdb9e94..27c4e058 100644 --- a/ui-core/src/components/inputs/RadioGroup.tsx +++ b/ui-core/src/components/inputs/RadioGroup.tsx @@ -32,10 +32,7 @@ const RadioGroup = ({ }: RadioGroupProps) => { const [selectedValue, setSelectedValue] = useState(value); - const handleOptionChange = ( - e: ChangeEvent, - nextOption: RadioButtonProps - ) => { + const handleOptionChange = (e: ChangeEvent, nextOption: RadioButtonProps) => { if (!readOnly) { setSelectedValue(nextOption.value); nextOption.onChange?.(e);