File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,11 +147,6 @@ const Spin: SpinType = (props) => {
147147 // ======================= Size ======================
148148 const mergedSize = useSize ( ( ctx ) => size ?? ctx ) ;
149149
150- if ( process . env . NODE_ENV !== 'production' ) {
151- const warning = devUseWarning ( 'Spin' ) ;
152- warning . deprecated ( size !== 'default' , 'size="default"' , 'size="medium"' ) ;
153- }
154-
155150 // ======================= Description ======================
156151 const mergedDescription = description ?? tip ;
157152
@@ -180,6 +175,7 @@ const Spin: SpinType = (props) => {
180175 if ( process . env . NODE_ENV !== 'production' ) {
181176 const warning = devUseWarning ( 'Spin' ) ;
182177
178+ warning . deprecated ( size !== 'default' , 'size="default"' , 'size="medium"' ) ;
183179 warning . deprecated ( ! tip , 'tip' , 'description' ) ;
184180 warning . deprecated ( ! wrapperClassName , 'wrapperClassName' , 'classNames.root' ) ;
185181
You can’t perform that action at this time.
0 commit comments