From d282437a3d3f4aa43a46a7d3e337a7684a0d92f7 Mon Sep 17 00:00:00 2001 From: Linus Flood Date: Tue, 8 Apr 2025 05:58:45 +0000 Subject: [PATCH] Merged in fix/reward-night-booking-widget (pull request #1752) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: bookingwidget - use new reward night booking always * fix: bookingwidget - use new reward night booking always Approved-by: Joakim Jäderberg --- .../FormContent/Voucher/index.tsx | 58 +------------------ 1 file changed, 3 insertions(+), 55 deletions(-) diff --git a/apps/scandic-web/components/Forms/BookingWidget/FormContent/Voucher/index.tsx b/apps/scandic-web/components/Forms/BookingWidget/FormContent/Voucher/index.tsx index 439de6631..ba8e44181 100644 --- a/apps/scandic-web/components/Forms/BookingWidget/FormContent/Voucher/index.tsx +++ b/apps/scandic-web/components/Forms/BookingWidget/FormContent/Voucher/index.tsx @@ -2,12 +2,8 @@ import { FormProvider, useForm } from "react-hook-form" import { useIntl } from "react-intl" -import { env } from "@/env/client" - import SkeletonShimmer from "@/components/SkeletonShimmer" -import Checkbox from "@/components/TempDesignSystem/Form/Checkbox" import Caption from "@/components/TempDesignSystem/Text/Caption" -import { Tooltip } from "@/components/TempDesignSystem/Tooltip" import BookingCode from "../BookingCode" import RewardNight from "../RewardNight" @@ -15,61 +11,13 @@ import RewardNight from "../RewardNight" import styles from "./voucher.module.css" export default function Voucher() { - const intl = useIntl() - - const bonus = intl.formatMessage({ id: "Use Bonus Cheque" }) - const reward = intl.formatMessage({ id: "Book Reward Night" }) - - // ToDo: Remove this when all three options are enabled - const disabledBookingOptionsHeader = intl.formatMessage({ - id: "We're sorry", - }) - const disabledBookingOptionsText = intl.formatMessage({ - id: "Codes, cheques and reward nights aren't available on the new website yet.", - }) - return (
- {env.NEXT_PUBLIC_HIDE_FOR_NEXT_RELEASE ? ( - <> -
- - - - {bonus} - - - {/* Out of scope for this release */} - -
-
- - - - {reward} - - - {/* Out of scope for this release */} - -
- - ) : ( -
- -
- )} +
+ +
)