From 64b5aa04d52e67c6077e67931750565b9e762907 Mon Sep 17 00:00:00 2001 From: Linus Flood Date: Thu, 14 Aug 2025 06:26:49 +0000 Subject: [PATCH] Merged in feat/SA-668-remove-rebook-webview (pull request #2651) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit feat(webviews)-SA-668-remove-rebook-button * feat(webviews)-SA-668-remove-rebook-button Approved-by: Joakim Jäderberg --- .../ReferenceCard/Actions/Cancelled/index.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/apps/scandic-web/components/HotelReservation/MyStay/ReferenceCard/Actions/Cancelled/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/ReferenceCard/Actions/Cancelled/index.tsx index 8a87ce9f3..a4229dc7c 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/ReferenceCard/Actions/Cancelled/index.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/ReferenceCard/Actions/Cancelled/index.tsx @@ -1,20 +1,27 @@ "use client" +import { usePathname } from "next/navigation" import { useIntl } from "react-intl" import Link from "@scandic-hotels/design-system/Link" +import { isWebview } from "@/constants/routes/webviews" + import CustomerSupport from "./CustomerSupport" import styles from "./cancelled.module.css" export default function Cancelled() { const intl = useIntl() + const pathname = usePathname() return ( <> {/* (S) TODO - Link to where?? */} - - {intl.formatMessage({ defaultMessage: "Rebook" })} - + {!isWebview(pathname) && ( + + {intl.formatMessage({ defaultMessage: "Rebook" })} + + )} + )