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 { Rate } from "@/types/components/hotelReservation/selectRate/selectRate"
|
||||||
import type { RoomData } from "@/types/hotel"
|
import type { RoomData } from "@/types/hotel"
|
||||||
|
|
||||||
|
interface SelectedRoomPanelProps {
|
||||||
|
roomIndex: number
|
||||||
|
room: RoomParam
|
||||||
|
selectedRate: Rate | null
|
||||||
|
roomCategories: RoomData[]
|
||||||
|
handleModify: () => void
|
||||||
|
}
|
||||||
|
|
||||||
export default function SelectedRoomPanel({
|
export default function SelectedRoomPanel({
|
||||||
roomIndex,
|
roomIndex,
|
||||||
room,
|
room,
|
||||||
selectedRate,
|
selectedRate,
|
||||||
roomCategories,
|
roomCategories,
|
||||||
handleModify,
|
handleModify,
|
||||||
}: {
|
}: SelectedRoomPanelProps) {
|
||||||
roomIndex: number
|
|
||||||
room: RoomParam
|
|
||||||
selectedRate: Rate | null
|
|
||||||
roomCategories: RoomData[]
|
|
||||||
handleModify: () => void
|
|
||||||
}) {
|
|
||||||
const intl = useIntl()
|
const intl = useIntl()
|
||||||
const images = roomCategories.find((roomCategory) =>
|
const images = roomCategories.find((roomCategory) =>
|
||||||
roomCategory.roomTypes.some(
|
roomCategory.roomTypes.some(
|
||||||
|
|||||||
Reference in New Issue
Block a user