Просмотр исходного кода

Bugfix: Loading style props problems fixed.

lfabl 1 месяц назад
Родитель
Сommit
6d963cd382

+ 3 - 3
src/components/button/index.tsx

@@ -149,9 +149,9 @@ const Button: FC<IButtonProps> = ({
 
             return <Loading
                 {...iconProps}
-                style={[
-                    loadingDynamicStyle
-                ]}
+                style={{
+                    ...loadingDynamicStyle
+                }}
             />;
         }
 

+ 3 - 3
src/components/checkBox/index.tsx

@@ -184,9 +184,9 @@ const CheckBox: FC<ICheckBoxProps> = ({
     const renderCheckIndicator = () => {
         if (isLoading) {
             return <Loading
-                style={[
-                    loadingDynamicStyle
-                ]}
+                style={{
+                    ...loadingDynamicStyle
+                }}
             />;
         }
 

+ 3 - 3
src/components/highlightButton/index.tsx

@@ -125,9 +125,9 @@ const HighlightButton: FC<IHighlightButtonProps> = ({
 
             return <Loading
                 {...iconProps}
-                style={[
-                    loadingDynamicStyle
-                ]}
+                style={{
+                    ...loadingDynamicStyle
+                }}
             />;
         }
 

+ 3 - 3
src/components/notificationIndicator/index.tsx

@@ -128,9 +128,9 @@ const NotificationIndicator: FC<INotificationIndicatorProps> = ({
 
         if (isLoading) {
             return <Loading
-                style={[
-                    loadingDynamicStyle
-                ]}
+                style={{
+                    ...loadingDynamicStyle
+                }}
             />;
         }
 

+ 3 - 3
src/components/radioButton/index.tsx

@@ -179,9 +179,9 @@ const RadioButton: FC<IRadioButtonProps> = ({
     const renderIndicatorContainer = () => {
         if (isLoading) {
             return <Loading
-                style={[
-                    loadingDynamicStyle
-                ]}
+                style={{
+                    ...loadingDynamicStyle
+                }}
             />;
         }
 

+ 3 - 3
src/components/switch/index.tsx

@@ -194,9 +194,9 @@ const Switch: FC<ISwitchProps> = ({
     const renderIndicatorContainer = () => {
         if (isLoading) {
             return <Loading
-                style={[
-                    loadingDynamicStyle
-                ]}
+                style={{
+                    ...loadingDynamicStyle
+                }}
             />;
         }