feat(SW-281): refactor type
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
import type { Hotel } from "@/types/hotel"
|
||||
|
||||
export type HotelListingProps = {
|
||||
imageUrl: Hotel["hotelContent"]["images"]["imageSizes"]["large"]
|
||||
altText: Hotel["hotelContent"]["images"]["metaData"]["altText"]
|
||||
name: Hotel["name"]
|
||||
address: Hotel["address"]["streetAddress"]
|
||||
distanceToCentre: Hotel["location"]["distanceToCentre"]
|
||||
description: Hotel["hotelContent"]["texts"]["descriptions"]["medium"]
|
||||
link: string
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
export type HotelListingItemProps = {
|
||||
imageUrl: string
|
||||
altText: string
|
||||
name: string
|
||||
address: string
|
||||
distanceToCentre: number
|
||||
description: string
|
||||
link: string
|
||||
}
|
||||
Reference in New Issue
Block a user