feat: add included param to hotel call, fetch room data, setup schema, use in hotelpage

This commit is contained in:
Chuma McPhoy
2024-07-10 13:41:39 +02:00
parent f71d0a07d5
commit 0697c8d9ef
15 changed files with 191 additions and 162 deletions

View File

@@ -1,8 +1,8 @@
import { ImageProps } from "next/image"
import { RoomData } from "@/types/hotel"
export interface RoomCardProps {
id: string
images: ImageProps[]
images: RoomData["attributes"]["content"]["images"]
title: string
subtitle: string
badgeTextTransKey?: string | null

View File

@@ -1,12 +0,0 @@
import { ImageProps } from "next/image"
// TODO: Typings should be adjusted to match the actual data structure
export interface RoomsProps {
rooms: {
id: string
title: string
subtitle: string
popularChoice: boolean
images: ImageProps[]
}[]
}