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
This commit is contained in:
@@ -7,7 +7,7 @@ import type { AccessibilityProps } from "@/types/components/hotelReservation/sel
|
|||||||
import { IconName } from "@/types/components/icon"
|
import { IconName } from "@/types/components/icon"
|
||||||
|
|
||||||
export default function Accessibility({
|
export default function Accessibility({
|
||||||
accessibilityElevatorPitchText,
|
elevatorPitchText,
|
||||||
}: AccessibilityProps) {
|
}: AccessibilityProps) {
|
||||||
const intl = useIntl()
|
const intl = useIntl()
|
||||||
return (
|
return (
|
||||||
@@ -16,7 +16,7 @@ export default function Accessibility({
|
|||||||
icon={IconName.Accessibility}
|
icon={IconName.Accessibility}
|
||||||
variant="sidepeek"
|
variant="sidepeek"
|
||||||
>
|
>
|
||||||
<Body>{accessibilityElevatorPitchText}</Body>
|
<Body>{elevatorPitchText}</Body>
|
||||||
</AccordionItem>
|
</AccordionItem>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,10 +54,10 @@ export default function HotelSidePeek({
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{additionalHotelData?.accessibilityElevatorPitchText && (
|
{additionalHotelData?.hotelSpecialNeeds.elevatorPitch && (
|
||||||
<Accessibility
|
<Accessibility
|
||||||
accessibilityElevatorPitchText={
|
elevatorPitchText={
|
||||||
additionalHotelData.accessibilityElevatorPitchText
|
additionalHotelData.hotelSpecialNeeds.elevatorPitch
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -54,7 +54,6 @@ export const additionalDataSchema = z.object({
|
|||||||
healthAndFitness: extraPageSchema,
|
healthAndFitness: extraPageSchema,
|
||||||
hotelParking: extraPageSchema,
|
hotelParking: extraPageSchema,
|
||||||
hotelSpecialNeeds: extraPageSchema,
|
hotelSpecialNeeds: extraPageSchema,
|
||||||
accessibilityElevatorPitchText: z.string().optional(),
|
|
||||||
hotelRoomElevatorPitchText: z.string().optional(),
|
hotelRoomElevatorPitchText: z.string().optional(),
|
||||||
}),
|
}),
|
||||||
type: z.literal("additionalData"),
|
type: z.literal("additionalData"),
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ import { facilitySchema } from "./additionalData"
|
|||||||
import { imageSchema } from "./image"
|
import { imageSchema } from "./image"
|
||||||
|
|
||||||
export const attributesSchema = z.object({
|
export const attributesSchema = z.object({
|
||||||
accessibilityElevatorPitchText: z.string().optional(),
|
|
||||||
address: addressSchema,
|
address: addressSchema,
|
||||||
cityId: z.string(),
|
cityId: z.string(),
|
||||||
cityName: z.string(),
|
cityName: z.string(),
|
||||||
|
|||||||
@@ -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": {
|
"merchantInformationData": {
|
||||||
"webMerchantId": "1110009031",
|
"webMerchantId": "1110009031",
|
||||||
"cards": {
|
"cards": {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export interface ParkingProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface AccessibilityProps {
|
export interface AccessibilityProps {
|
||||||
accessibilityElevatorPitchText: string
|
elevatorPitchText: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RestaurantProps {
|
export interface RestaurantProps {
|
||||||
|
|||||||
Reference in New Issue
Block a user