feat(SW-718): Updated type in props
This commit is contained in:
@@ -13,19 +13,21 @@ import type { RoomParam } from "@/types/components/hotelReservation/selectRate/s
|
||||
import type { Rate } from "@/types/components/hotelReservation/selectRate/selectRate"
|
||||
import type { RoomData } from "@/types/hotel"
|
||||
|
||||
interface SelectedRoomPanelProps {
|
||||
roomIndex: number
|
||||
room: RoomParam
|
||||
selectedRate: Rate | null
|
||||
roomCategories: RoomData[]
|
||||
handleModify: () => void
|
||||
}
|
||||
|
||||
export default function SelectedRoomPanel({
|
||||
roomIndex,
|
||||
room,
|
||||
selectedRate,
|
||||
roomCategories,
|
||||
handleModify,
|
||||
}: {
|
||||
roomIndex: number
|
||||
room: RoomParam
|
||||
selectedRate: Rate | null
|
||||
roomCategories: RoomData[]
|
||||
handleModify: () => void
|
||||
}) {
|
||||
}: SelectedRoomPanelProps) {
|
||||
const intl = useIntl()
|
||||
const images = roomCategories.find((roomCategory) =>
|
||||
roomCategory.roomTypes.some(
|
||||
|
||||
Reference in New Issue
Block a user