From 1ab93a3cf4428e811c9c4b2a7bf23f127839dab8 Mon Sep 17 00:00:00 2001 From: Eugene Matvejev Date: Tue, 17 Nov 2020 03:01:05 +0000 Subject: [PATCH] refactor: Radio.Group defaultProps (#27807) --- components/radio/group.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/radio/group.tsx b/components/radio/group.tsx index fc71de7d97..fb0312d168 100644 --- a/components/radio/group.tsx +++ b/components/radio/group.tsx @@ -33,7 +33,7 @@ const RadioGroup = React.forwardRef((props, ref className = '', options, optionType, - buttonStyle, + buttonStyle = 'outline' as RadioGroupButtonStyle, disabled, children, size: customizeSize, @@ -117,8 +117,4 @@ const RadioGroup = React.forwardRef((props, ref ); }); -RadioGroup.defaultProps = { - buttonStyle: 'outline' as RadioGroupButtonStyle, -}; - export default React.memo(RadioGroup);