From 8b475e0ca8f061239bd25a189b9c6beb2173940c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Tue, 4 Feb 2025 10:51:55 +0000 Subject: [PATCH] Merged in feat/SW-159-remove-accessibilityElevatorPitchText (pull request #1245) fix(SW-1553): remove accessibilityElevatorPitchText * fix(SW-159): remove accessibilityElevatorPitchText Approved-by: Bianca Widstam Approved-by: Christian Andolf Approved-by: Fredrik Thorsson --- .../SidePeeks/HotelSidePeek/Accordions/Accessibility.tsx | 4 ++-- components/SidePeeks/HotelSidePeek/index.tsx | 6 +++--- server/routers/hotels/schemas/additionalData.ts | 1 - server/routers/hotels/schemas/hotel.ts | 1 - server/routers/hotels/tempHotelData.json | 1 - .../components/hotelReservation/selectHotel/selectHotel.ts | 2 +- 6 files changed, 6 insertions(+), 9 deletions(-) diff --git a/components/SidePeeks/HotelSidePeek/Accordions/Accessibility.tsx b/components/SidePeeks/HotelSidePeek/Accordions/Accessibility.tsx index a89cbfcdb..96fda424c 100644 --- a/components/SidePeeks/HotelSidePeek/Accordions/Accessibility.tsx +++ b/components/SidePeeks/HotelSidePeek/Accordions/Accessibility.tsx @@ -7,7 +7,7 @@ import type { AccessibilityProps } from "@/types/components/hotelReservation/sel import { IconName } from "@/types/components/icon" export default function Accessibility({ - accessibilityElevatorPitchText, + elevatorPitchText, }: AccessibilityProps) { const intl = useIntl() return ( @@ -16,7 +16,7 @@ export default function Accessibility({ icon={IconName.Accessibility} variant="sidepeek" > - {accessibilityElevatorPitchText} + {elevatorPitchText} ) } diff --git a/components/SidePeeks/HotelSidePeek/index.tsx b/components/SidePeeks/HotelSidePeek/index.tsx index 94a92bc5e..c34d6f3f6 100644 --- a/components/SidePeeks/HotelSidePeek/index.tsx +++ b/components/SidePeeks/HotelSidePeek/index.tsx @@ -54,10 +54,10 @@ export default function HotelSidePeek({ } /> )} - {additionalHotelData?.accessibilityElevatorPitchText && ( + {additionalHotelData?.hotelSpecialNeeds.elevatorPitch && ( )} diff --git a/server/routers/hotels/schemas/additionalData.ts b/server/routers/hotels/schemas/additionalData.ts index c00292620..28602b9fe 100644 --- a/server/routers/hotels/schemas/additionalData.ts +++ b/server/routers/hotels/schemas/additionalData.ts @@ -54,7 +54,6 @@ export const additionalDataSchema = z.object({ healthAndFitness: extraPageSchema, hotelParking: extraPageSchema, hotelSpecialNeeds: extraPageSchema, - accessibilityElevatorPitchText: z.string().optional(), hotelRoomElevatorPitchText: z.string().optional(), }), type: z.literal("additionalData"), diff --git a/server/routers/hotels/schemas/hotel.ts b/server/routers/hotels/schemas/hotel.ts index 103579e5e..1a02ff18b 100644 --- a/server/routers/hotels/schemas/hotel.ts +++ b/server/routers/hotels/schemas/hotel.ts @@ -23,7 +23,6 @@ import { facilitySchema } from "./additionalData" import { imageSchema } from "./image" export const attributesSchema = z.object({ - accessibilityElevatorPitchText: z.string().optional(), address: addressSchema, cityId: z.string(), cityName: z.string(), diff --git a/server/routers/hotels/tempHotelData.json b/server/routers/hotels/tempHotelData.json index b2e954824..7f2c9bfd0 100644 --- a/server/routers/hotels/tempHotelData.json +++ b/server/routers/hotels/tempHotelData.json @@ -1521,7 +1521,6 @@ } ] }, - "accessibilityElevatorPitchText": "Find the information you might need, before visiting us. You are always welcome to our hotel - completely without barriers. Regardless of impairment, sight, hearing, allergies or wheelchair, we have made sure that you enjoy your stay.", "merchantInformationData": { "webMerchantId": "1110009031", "cards": { diff --git a/types/components/hotelReservation/selectHotel/selectHotel.ts b/types/components/hotelReservation/selectHotel/selectHotel.ts index f2537cc34..f49f879d3 100644 --- a/types/components/hotelReservation/selectHotel/selectHotel.ts +++ b/types/components/hotelReservation/selectHotel/selectHotel.ts @@ -26,7 +26,7 @@ export interface ParkingProps { } export interface AccessibilityProps { - accessibilityElevatorPitchText: string + elevatorPitchText: string } export interface RestaurantProps {