refactor: Radio.Group defaultProps (#27807)

This commit is contained in:
Eugene Matvejev 2020-11-17 03:01:05 +00:00 committed by GitHub
parent 572601fb4b
commit 1ab93a3cf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);