feat(SW-344): Hotel list in mobile
This commit is contained in:
@@ -17,13 +17,13 @@ import styles from "./hotelCardDialog.module.css"
|
||||
import type { HotelCardDialogProps } from "@/types/components/hotelReservation/selectHotel/map"
|
||||
|
||||
export default function HotelCardDialog({
|
||||
pin,
|
||||
data,
|
||||
isOpen,
|
||||
handleClose,
|
||||
}: HotelCardDialogProps) {
|
||||
const intl = useIntl()
|
||||
|
||||
if (!pin) {
|
||||
if (!data) {
|
||||
return null
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ export default function HotelCardDialog({
|
||||
amenities,
|
||||
images,
|
||||
ratings,
|
||||
} = pin
|
||||
} = data
|
||||
|
||||
const firstImage = images[0]?.imageSizes?.small
|
||||
const altText = images[0]?.metaData?.altText
|
||||
|
||||
Reference in New Issue
Block a user