feat(SW-880): add import type
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
|
|
||||||
export async function getType(type: string) {
|
export async function getFacilityType(type: string) {
|
||||||
const intl = await getIntl()
|
const intl = await getIntl()
|
||||||
|
|
||||||
/* TODO: Get full list of types */
|
/* TODO: Get full list of types */
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ import Title from "@/components/TempDesignSystem/Text/Title"
|
|||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
import { getLang } from "@/i18n/serverContext"
|
import { getLang } from "@/i18n/serverContext"
|
||||||
|
|
||||||
import { getType } from "../Utils/getType"
|
import { getFacilityType } from "../Utils/getType"
|
||||||
|
|
||||||
import styles from "./wellnessAndExercise.module.css"
|
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({
|
export default async function WellnessAndExerciseSidePeek({
|
||||||
healthFacilities,
|
healthFacilities,
|
||||||
@@ -39,7 +39,7 @@ export default async function WellnessAndExerciseSidePeek({
|
|||||||
/>
|
/>
|
||||||
<div className={styles.information}>
|
<div className={styles.information}>
|
||||||
<Subtitle color="burgundy" asChild type="one">
|
<Subtitle color="burgundy" asChild type="one">
|
||||||
<Title level="h3">{getType(facility.type)}</Title>
|
<Title level="h3">{getFacilityType(facility.type)}</Title>
|
||||||
</Subtitle>
|
</Subtitle>
|
||||||
<div>
|
<div>
|
||||||
<Subtitle type="two" color="uiTextHighContrast">
|
<Subtitle type="two" color="uiTextHighContrast">
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Hotel } from "@/types/hotel"
|
import type { Hotel } from "@/types/hotel"
|
||||||
|
|
||||||
export type WellnessAndExerciseSidePeekProps = {
|
export type WellnessAndExerciseSidePeekProps = {
|
||||||
healthFacilities: Hotel["healthFacilities"]
|
healthFacilities: Hotel["healthFacilities"]
|
||||||
|
|||||||
Reference in New Issue
Block a user