Merged in feat/SA-668-remove-rebook-webview (pull request #2651)
feat(webviews)-SA-668-remove-rebook-button * feat(webviews)-SA-668-remove-rebook-button Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -1,20 +1,27 @@
|
|||||||
"use client"
|
"use client"
|
||||||
|
import { usePathname } from "next/navigation"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
import Link from "@scandic-hotels/design-system/Link"
|
import Link from "@scandic-hotels/design-system/Link"
|
||||||
|
|
||||||
|
import { isWebview } from "@/constants/routes/webviews"
|
||||||
|
|
||||||
import CustomerSupport from "./CustomerSupport"
|
import CustomerSupport from "./CustomerSupport"
|
||||||
|
|
||||||
import styles from "./cancelled.module.css"
|
import styles from "./cancelled.module.css"
|
||||||
|
|
||||||
export default function Cancelled() {
|
export default function Cancelled() {
|
||||||
const intl = useIntl()
|
const intl = useIntl()
|
||||||
|
const pathname = usePathname()
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* (S) TODO - Link to where?? */}
|
{/* (S) TODO - Link to where?? */}
|
||||||
<Link className={styles.link} href="#">
|
{!isWebview(pathname) && (
|
||||||
{intl.formatMessage({ defaultMessage: "Rebook" })}
|
<Link className={styles.link} href="#">
|
||||||
</Link>
|
{intl.formatMessage({ defaultMessage: "Rebook" })}
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
|
|
||||||
<CustomerSupport />
|
<CustomerSupport />
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user