fix: moved typings to typings folder and removed fallback variable values. Also fixed so only RoomCard is client component

This commit is contained in:
Erik Tiekstra
2024-07-05 12:49:52 +02:00
committed by Chuma McPhoy
parent 7eea7aa400
commit ea8165bec9
7 changed files with 64 additions and 85 deletions

View File

@@ -0,0 +1,9 @@
import { ImageProps } from "next/image"
export interface RoomCardProps {
id: string
images: ImageProps[]
title: string
subtitle: string
badgeTextTransKey?: string | null
}

View 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[]
}[]
}