diff --git a/lib/components/MegaMenuLayout/MegaMenuLayout.tsx b/lib/components/MegaMenuLayout/MegaMenuLayout.tsx index b909fa9..81dc923 100644 --- a/lib/components/MegaMenuLayout/MegaMenuLayout.tsx +++ b/lib/components/MegaMenuLayout/MegaMenuLayout.tsx @@ -24,6 +24,7 @@ export type MegaMenuWrapperProps = { url?: string; subtitle?: string; searchUrl?: string; + hidePhone?: boolean; rightSideActionsOverride?: () => JSX.Element; callback?: (searchTerm: string) => void; linkComponent?: LinkComponentType; @@ -47,6 +48,7 @@ const MegaMenuContents: React.FC = ({ title, url, subtitle, + hidePhone, searchUrl = DEFAULT_URL, menuBarItems, rightSideActionsOverride, @@ -115,7 +117,7 @@ const MegaMenuContents: React.FC = ({ ) : ( - + !hidePhone && )} {isFlagVisible && } {isFlagVisible && } @@ -133,6 +135,7 @@ const MegaMenuContents: React.FC = ({ searchTerm={searchTerm} performSearch={performSearch} searchUrl={searchUrl} + hidePhone={hidePhone} menuGroups={menuItems} sideActionsOverride={rightSideActionsOverride} callback={callback} @@ -152,7 +155,7 @@ const MegaMenuContents: React.FC = ({ ) : ( - + !hidePhone && )} ); diff --git a/lib/components/ui/Divider.tsx b/lib/components/ui/Divider.tsx index 6619dca..2df0c4d 100644 --- a/lib/components/ui/Divider.tsx +++ b/lib/components/ui/Divider.tsx @@ -2,5 +2,5 @@ import type { ClassValue } from "clsx"; import { cx } from "../../util/cx"; export const Divider = ({ className }: { className?: ClassValue }) => ( -
+
); diff --git a/package.json b/package.json index a910925..e6fcc90 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ssw.megamenu", - "version": "4.13.7", + "version": "4.13.8", "repository": { "type": "git", "url": "https://github.com/SSWConsulting/SSW.MegaMenu" @@ -91,4 +91,4 @@ ] }, "packageManager": "pnpm@9.5.0" -} +} \ No newline at end of file