feat(SW-880): add import type

This commit is contained in:
Fredrik Thorsson
2024-11-14 14:21:01 +01:00
committed by Joakim Jäderberg
parent c7d285de74
commit edc65af74e
3 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
import { getIntl } from "@/i18n"
export async function getType(type: string) {
export async function getFacilityType(type: string) {
const intl = await getIntl()
/* TODO: Get full list of types */

View File

@@ -10,11 +10,11 @@ import Title from "@/components/TempDesignSystem/Text/Title"
import { getIntl } from "@/i18n"
import { getLang } from "@/i18n/serverContext"
import { getType } from "../Utils/getType"
import { getFacilityType } from "../Utils/getType"
import styles from "./wellnessAndExercise.module.css"
import { WellnessAndExerciseSidePeekProps } from "@/types/components/hotelPage/sidepeek/wellnessAndExercise"
import type { WellnessAndExerciseSidePeekProps } from "@/types/components/hotelPage/sidepeek/wellnessAndExercise"
export default async function WellnessAndExerciseSidePeek({
healthFacilities,
@@ -39,7 +39,7 @@ export default async function WellnessAndExerciseSidePeek({
/>
<div className={styles.information}>
<Subtitle color="burgundy" asChild type="one">
<Title level="h3">{getType(facility.type)}</Title>
<Title level="h3">{getFacilityType(facility.type)}</Title>
</Subtitle>
<div>
<Subtitle type="two" color="uiTextHighContrast">

View File

@@ -1,4 +1,4 @@
import { Hotel } from "@/types/hotel"
import type { Hotel } from "@/types/hotel"
export type WellnessAndExerciseSidePeekProps = {
healthFacilities: Hotel["healthFacilities"]