Skip to content

Commit

Permalink
fix: make return implicit in label
Browse files Browse the repository at this point in the history
  • Loading branch information
benlister-okta committed Apr 25, 2024
1 parent 6be8bd0 commit e2a26df
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/odyssey-react-mui/src/Radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,18 @@ const Radio = ({
[],
);

const label = useMemo(() => {
return (
const label = useMemo(
() => (
<>
<Typography component="span">{labelProp}</Typography>
{hint && <FormHelperText translate={translate}>{hint}</FormHelperText>}
</>
);
}, [labelProp, hint, translate]);
),
[labelProp, hint, translate],
);

const onChange = useCallback<NonNullable<MuiRadioProps["onChange"]>>(
(event, checked) => {
onChangeProp?.(event, checked);
},
(event, checked) => onChangeProp?.(event, checked),
[onChangeProp],
);

Expand Down

0 comments on commit e2a26df

Please sign in to comment.