From a8a4de06cc40d1ac2660d66eff9c5b09434a6c5f Mon Sep 17 00:00:00 2001 From: hasan-deriv Date: Fri, 15 Mar 2024 11:03:48 +0800 Subject: [PATCH] chore: added a class props to mobile height --- libs/blocks/src/lib/navigation/index.tsx | 3 +++ libs/blocks/src/lib/navigation/mobile/index.tsx | 3 ++- .../src/lib/navigation/mobile/mobile.wrapper.tsx | 13 ++++++++++--- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/libs/blocks/src/lib/navigation/index.tsx b/libs/blocks/src/lib/navigation/index.tsx index 9efccd8c8..c685e0775 100644 --- a/libs/blocks/src/lib/navigation/index.tsx +++ b/libs/blocks/src/lib/navigation/index.tsx @@ -9,6 +9,7 @@ export interface NavigationProps { items?: NavLinkItems; hasLanguageSwitch?: boolean; topNavigation?: () => ReactNode; + mobileWrapClass?: string; } export const NavigationBlock = ({ @@ -17,6 +18,7 @@ export const NavigationBlock = ({ items = {}, hasLanguageSwitch = true, topNavigation, + mobileWrapClass, }: NavigationProps) => { return ( @@ -32,6 +34,7 @@ export const NavigationBlock = ({ renderLogo={renderLogo} hasLanguageSwitch={hasLanguageSwitch} topNavigation={topNavigation} + mobileWrapClass={mobileWrapClass} /> ); diff --git a/libs/blocks/src/lib/navigation/mobile/index.tsx b/libs/blocks/src/lib/navigation/mobile/index.tsx index 474f8540c..1a2143265 100644 --- a/libs/blocks/src/lib/navigation/mobile/index.tsx +++ b/libs/blocks/src/lib/navigation/mobile/index.tsx @@ -11,6 +11,7 @@ export const MobileNav: React.FC = ({ renderButtons, hasLanguageSwitch, topNavigation, + mobileWrapClass, }) => { return ( = ({ {topNavigation?.()}