feat(SW-281): refactor type

This commit is contained in:
Fredrik Thorsson
2024-10-28 14:23:57 +01:00
parent 720dc4c26b
commit d8dacf022d
3 changed files with 11 additions and 13 deletions
@@ -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
}