Merged in fix/SW-3325-hotelcard-mobile-show-alert-left-align (pull request #2725)

fix(SW-3325): show alert in hotel card mobile and left align text

* fix(SW-3325): show alert in hotel card mobile and left align text


Approved-by: Joakim Jäderberg
This commit is contained in:
Bianca Widstam
2025-08-28 12:04:43 +00:00
parent 784c353b1e
commit 8a53e97e5f
4 changed files with 19 additions and 42 deletions

View File

@@ -24,6 +24,7 @@ interface HotelDetailsSidePeekProps {
additionalHotelData: AdditionalData | undefined
triggerLabel: string
buttonVariant: "primary" | "secondary"
wrapping?: boolean
}
const buttonPropsMap: Record<
@@ -52,6 +53,7 @@ export default function HotelDetailsSidePeek({
restaurants,
additionalHotelData,
triggerLabel,
wrapping = true,
buttonVariant,
}: HotelDetailsSidePeekProps) {
const buttonProps = buttonPropsMap[buttonVariant]
@@ -60,7 +62,7 @@ export default function HotelDetailsSidePeek({
<DialogTrigger>
<Button
{...buttonProps}
wrapping
wrapping={wrapping}
onPress={() =>
trackOpenSidePeekEvent({
name: SidePeekEnum.hotelDetails,