Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/components/MegaMenuLayout/MegaMenuLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export type MegaMenuWrapperProps = {
url?: string;
subtitle?: string;
searchUrl?: string;
hidePhone?: boolean;
rightSideActionsOverride?: () => JSX.Element;
callback?: (searchTerm: string) => void;
linkComponent?: LinkComponentType;
Expand All @@ -47,6 +48,7 @@ const MegaMenuContents: React.FC<MegaMenuWrapperProps> = ({
title,
url,
subtitle,
hidePhone,
searchUrl = DEFAULT_URL,
menuBarItems,
rightSideActionsOverride,
Expand Down Expand Up @@ -115,7 +117,7 @@ const MegaMenuContents: React.FC<MegaMenuWrapperProps> = ({
<RightSideActions />
</div>
) : (
<PhoneButton className="max-sm:hidden" />
!hidePhone && <PhoneButton className="max-sm:hidden" />
)}
{isFlagVisible && <CountryDropdown />}
{isFlagVisible && <Divider />}
Expand All @@ -133,6 +135,7 @@ const MegaMenuContents: React.FC<MegaMenuWrapperProps> = ({
searchTerm={searchTerm}
performSearch={performSearch}
searchUrl={searchUrl}
hidePhone={hidePhone}
menuGroups={menuItems}
sideActionsOverride={rightSideActionsOverride}
callback={callback}
Expand All @@ -152,7 +155,7 @@ const MegaMenuContents: React.FC<MegaMenuWrapperProps> = ({
<RightSideActions />
</div>
) : (
<PhoneButton className="flex-grow pb-4 sm:hidden" />
!hidePhone && <PhoneButton className="flex-grow pb-4 sm:hidden" />
)}
</>
);
Expand Down
2 changes: 1 addition & 1 deletion lib/components/ui/Divider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import type { ClassValue } from "clsx";
import { cx } from "../../util/cx";

export const Divider = ({ className }: { className?: ClassValue }) => (
<div className={cx("h-4 w-px bg-gray-700/30 mr-1", className)}></div>
<div className={cx("mr-1 h-4 w-px bg-gray-700/30", className)}></div>
);
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -91,4 +91,4 @@
]
},
"packageManager": "pnpm@9.5.0"
}
}