Bläddra i källkod

Feature: seperatorProps added to Menu component.

lfabl 1 månad sedan
förälder
incheckning
9c4268224f
2 ändrade filer med 5 tillägg och 0 borttagningar
  1. 3 0
      src/components/menu/index.tsx
  2. 2 0
      src/components/menu/type.ts

+ 3 - 0
src/components/menu/index.tsx

@@ -52,6 +52,7 @@ const Menu: RefForwardingComponent<IMenuRef, IMenuProps> = ({
     customBackgroundColor,
     close: closeAction,
     glassEffect = 0,
+    seperatorProps,
     siteLogoProps,
     customTheme,
     navigation,
@@ -283,7 +284,9 @@ const Menu: RefForwardingComponent<IMenuRef, IMenuProps> = ({
                 {...siteLogoProps}
             />
             <Seperator
+                {...seperatorProps}
                 style={[
+                    seperatorProps?.style,
                     stylesheet.seperator,
                     seperatorDynamicStyle
                 ]}

+ 2 - 0
src/components/menu/type.ts

@@ -10,6 +10,7 @@ import type {
 import type {
     NCoreUIKitIcon
 } from "../../types";
+import type ISeperatorProps from "../seperator/type";
 import type ISiteLogoProps from "../siteLogo/type";
 import type IRowCardProps from "../rowCard/type";
 import type IModalProps from "../modal/type";
@@ -55,6 +56,7 @@ interface IMenuProps {
     };
     navigation: NCoreUIKit.Navigation;
     isWorkWithSafeAreaView?: boolean;
+    seperatorProps?: ISeperatorProps;
     customBackgroundColor?: string;
     isAutoClosedOnClosed?: boolean;
     siteLogoProps?: ISiteLogoProps;