diff --git a/components/ContentType/HotelPage/AmenitiesList/index.tsx b/components/ContentType/HotelPage/AmenitiesList/index.tsx index 8b6a1977e..e5881b0bd 100644 --- a/components/ContentType/HotelPage/AmenitiesList/index.tsx +++ b/components/ContentType/HotelPage/AmenitiesList/index.tsx @@ -11,6 +11,7 @@ import { getLang } from "@/i18n/serverContext" import styles from "./amenitiesList.module.css" import type { AmenitiesListProps } from "@/types/components/hotelPage/amenities" +import type { HotelData } from "@/types/hotel" export default async function AmenitiesList({ detailedFacilities, diff --git a/components/ContentType/HotelPage/IntroSection/index.tsx b/components/ContentType/HotelPage/IntroSection/index.tsx index f6118a2fc..360d0f8df 100644 --- a/components/ContentType/HotelPage/IntroSection/index.tsx +++ b/components/ContentType/HotelPage/IntroSection/index.tsx @@ -11,10 +11,10 @@ import Title from "@/components/TempDesignSystem/Text/Title" import { getIntl } from "@/i18n" import { getLang } from "@/i18n/serverContext" -import { IntroSectionProps } from "./types" - import styles from "./introSection.module.css" +import type { IntroSectionProps } from "./types" + export default async function IntroSection({ hotelName, hotelDescription, diff --git a/components/ContentType/HotelPage/Rooms/RoomCard/index.tsx b/components/ContentType/HotelPage/Rooms/RoomCard/index.tsx index 35f671fe5..a6c4748f9 100644 --- a/components/ContentType/HotelPage/Rooms/RoomCard/index.tsx +++ b/components/ContentType/HotelPage/Rooms/RoomCard/index.tsx @@ -10,7 +10,7 @@ import Subtitle from "@/components/TempDesignSystem/Text/Subtitle" import styles from "./roomCard.module.css" -import type { RoomCardProps } from "@/types/components/hotelPage/roomCard" +import type { RoomCardProps } from "@/types/components/hotelPage/room" export function RoomCard({ badgeTextTransKey, diff --git a/components/ContentType/HotelPage/Rooms/index.tsx b/components/ContentType/HotelPage/Rooms/index.tsx index dcad34f41..f1aba4665 100644 --- a/components/ContentType/HotelPage/Rooms/index.tsx +++ b/components/ContentType/HotelPage/Rooms/index.tsx @@ -14,7 +14,7 @@ import { RoomCard } from "./RoomCard" import styles from "./rooms.module.css" import { HotelHashValues } from "@/types/components/hotelPage/tabNavigation" -import type { RoomsProps } from "./types" +import { RoomsProps } from "@/types/components/hotelPage/room" export function Rooms({ rooms }: RoomsProps) { const intl = useIntl() diff --git a/components/ContentType/HotelPage/Rooms/types.ts b/components/ContentType/HotelPage/Rooms/types.ts deleted file mode 100644 index b4c320af2..000000000 --- a/components/ContentType/HotelPage/Rooms/types.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RoomData } from "@/types/hotel" - -export type RoomsProps = { - rooms: RoomData[] -} diff --git a/components/TempDesignSystem/Accordion/AccordionItem/accordionItem.ts b/components/TempDesignSystem/Accordion/AccordionItem/accordionItem.ts index aebdba957..8f4ff07ca 100644 --- a/components/TempDesignSystem/Accordion/AccordionItem/accordionItem.ts +++ b/components/TempDesignSystem/Accordion/AccordionItem/accordionItem.ts @@ -2,7 +2,7 @@ import { VariantProps } from "class-variance-authority" import { accordionItemVariants } from "./variants" -import { IconName } from "@/types/components/icon" +import type { IconName } from "@/types/components/icon" export interface AccordionItemProps extends React.HtmlHTMLAttributes, diff --git a/components/TempDesignSystem/Accordion/index.tsx b/components/TempDesignSystem/Accordion/index.tsx index 64afe99b9..822026e53 100644 --- a/components/TempDesignSystem/Accordion/index.tsx +++ b/components/TempDesignSystem/Accordion/index.tsx @@ -1,9 +1,10 @@ import { Children, cloneElement, isValidElement } from "react" import { AccordionItemProps } from "./AccordionItem/accordionItem" -import { AccordionProps } from "./accordion" import { accordionVariants } from "./variants" +import type { AccordionProps } from "./accordion" + export default function Accordion({ children, className, diff --git a/types/components/hotelPage/roomCard.ts b/types/components/hotelPage/room.ts similarity index 79% rename from types/components/hotelPage/roomCard.ts rename to types/components/hotelPage/room.ts index 425edc128..cfa3593c9 100644 --- a/types/components/hotelPage/roomCard.ts +++ b/types/components/hotelPage/room.ts @@ -7,3 +7,7 @@ export interface RoomCardProps { subtitle: string badgeTextTransKey: string | null } + +export type RoomsProps = { + rooms: RoomData[] +} diff --git a/types/components/myPages/header.ts b/types/components/myPages/header.ts index 619dc805b..5fa1d1d16 100644 --- a/types/components/myPages/header.ts +++ b/types/components/myPages/header.ts @@ -1,4 +1,4 @@ -import { HeadingProps } from "@/components/TempDesignSystem/Text/Title/title" +import type { HeadingProps } from "@/components/TempDesignSystem/Text/Title/title" export type HeaderProps = { link?: {