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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user