fix(SW-1971): now closes mobile menu on clicking the find booking link
removed useless class usage added customer service url to link
This commit is contained in:
@@ -5,6 +5,7 @@ import { Dialog, Modal } from "react-aria-components"
|
||||
import { useIntl } from "react-intl"
|
||||
import { useMediaQuery } from "usehooks-ts"
|
||||
|
||||
import { customerService } from "@/constants/currentWebHrefs"
|
||||
import { findMyBooking } from "@/constants/routes/findMyBooking"
|
||||
import useDropdownStore from "@/stores/main-menu"
|
||||
|
||||
@@ -86,11 +87,18 @@ export default function MobileMenu({
|
||||
>
|
||||
{children}
|
||||
<footer className={styles.footer}>
|
||||
<HeaderLink href={findMyBooking[lang]} iconName={IconName.Search}>
|
||||
<HeaderLink
|
||||
href={findMyBooking[lang]}
|
||||
iconName={IconName.Search}
|
||||
onClick={() => toggleDropdown(DropdownTypeEnum.HamburgerMenu)}
|
||||
>
|
||||
{intl.formatMessage({ id: "Find booking" })}
|
||||
</HeaderLink>
|
||||
<TopLink isLoggedIn={isLoggedIn} topLink={topLink} iconSize={20} />
|
||||
<HeaderLink href="#" iconName={IconName.Service}>
|
||||
<HeaderLink
|
||||
href={customerService[lang]}
|
||||
iconName={IconName.Service}
|
||||
>
|
||||
{intl.formatMessage({ id: "Customer service" })}
|
||||
</HeaderLink>
|
||||
<LanguageSwitcher type="mobileHeader" />
|
||||
|
||||
Reference in New Issue
Block a user