fix: moved typings to typings folder and removed fallback variable values. Also fixed so only RoomCard is client component
This commit is contained in:
committed by
Chuma McPhoy
parent
7eea7aa400
commit
ea8165bec9
9
types/components/hotelPage/roomCard.ts
Normal file
9
types/components/hotelPage/roomCard.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { ImageProps } from "next/image"
|
||||
|
||||
export interface RoomCardProps {
|
||||
id: string
|
||||
images: ImageProps[]
|
||||
title: string
|
||||
subtitle: string
|
||||
badgeTextTransKey?: string | null
|
||||
}
|
||||
12
types/components/hotelPage/rooms.ts
Normal file
12
types/components/hotelPage/rooms.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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[]
|
||||
}[]
|
||||
}
|
||||
Reference in New Issue
Block a user