Forráskód Böngészése

Bugfix: Type problems fixed for new icon types.

lfabl 1 hónapja
szülő
commit
2f96694ed2

+ 1 - 4
src/components/button/index.tsx

@@ -15,9 +15,6 @@ import stylesheet, {
 import {
     NCoreUIKitTheme
 } from "../../core/hooks";
-import type {
-    INCoreUIKitIconProps
-} from "../../types";
 import type ITextProps from "../text/type";
 import Loading from "../loading";
 import Text from "../text";
@@ -95,7 +92,7 @@ const Button: FC<IButtonProps> = ({
         color: currentType.titleColor,
     };
 
-    const iconProps: INCoreUIKitIconProps = {
+    const iconProps: NCoreUIKit.IconCallbackProps = {
         size: Number(typography[currentSize.fontSize].fontSize),
         color: currentType.iconColor
     };

+ 1 - 3
src/components/selectBox/index.tsx

@@ -27,7 +27,6 @@ import {
     NCoreUIKitToast
 } from "../../core/hooks";
 import {
-    type INCoreUIKitIconProps,
     type NCoreUIKitIcon
 } from "../../types";
 import type {
@@ -153,7 +152,6 @@ function SelectBox<T>({
         inlineSpaces,
         isSearchable,
         currentType,
-        typography,
         isDisabled,
         radiuses,
         borders,
@@ -280,7 +278,7 @@ function SelectBox<T>({
         variant: "bodyLargeSize"
     };
 
-    const iconProps: INCoreUIKitIconProps = {
+    const iconProps: NCoreUIKit.IconCallbackProps = {
         size: Number(typography.labelLargeSize.fontSize) + 6,
         color: currentType.iconColor
     };

+ 4 - 1
src/components/selectSheet/index.tsx

@@ -96,7 +96,10 @@ function SelectSheet<T>({
                     loadingContainerDynamicStyle
                 ]}
             >
-                {LoadingIconComponentProp ? <LoadingIconComponentProp/> : <Loading/>}
+                {LoadingIconComponentProp ? <LoadingIconComponentProp
+                    color="emphasized"
+                    size={20}
+                /> : <Loading/>}
             </View>;
         }