feat(SW-880): refactor facility component

This commit is contained in:
Fredrik Thorsson
2024-11-18 11:23:34 +01:00
committed by Joakim Jäderberg
parent 3f73699e73
commit 706c305844
6 changed files with 72 additions and 83 deletions

View File

@@ -0,0 +1,5 @@
import type { Hotel } from "@/types/hotel"
export type FacilityProps = {
data: Hotel["healthFacilities"][number]
}

View File

@@ -1,19 +0,0 @@
export type FacilityCardProps = {
imgUrl: string
imgAltText: string
facilityType: string
ordinaryOpeningTimes: {
alwaysOpen: boolean
isClosed: boolean
openingTime?: string
closingTime?: string
sortOrder?: number
}
weekendOpeningTimes: {
alwaysOpen: boolean
isClosed: boolean
openingTime?: string
closingTime?: string
sortOrder?: number
}
}