Browse Source

refactor: Radio.Group defaultProps (#27807)

pull/27821/head
Eugene Matvejev 4 years ago
committed by GitHub
parent
commit
1ab93a3cf4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      components/radio/group.tsx

6
components/radio/group.tsx

@ -33,7 +33,7 @@ const RadioGroup = React.forwardRef<HTMLDivElement, RadioGroupProps>((props, ref
className = '',
options,
optionType,
buttonStyle,
buttonStyle = 'outline' as RadioGroupButtonStyle,
disabled,
children,
size: customizeSize,
@ -117,8 +117,4 @@ const RadioGroup = React.forwardRef<HTMLDivElement, RadioGroupProps>((props, ref
);
});
RadioGroup.defaultProps = {
buttonStyle: 'outline' as RadioGroupButtonStyle,
};
export default React.memo(RadioGroup);

Loading…
Cancel
Save