fix(SW-194): fix type imports
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
import { RoomData } from "@/types/hotel"
|
||||
|
||||
export type RoomsProps = {
|
||||
rooms: RoomData[]
|
||||
}
|
||||
@@ -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<HTMLDetailsElement>,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -7,3 +7,7 @@ export interface RoomCardProps {
|
||||
subtitle: string
|
||||
badgeTextTransKey: string | null
|
||||
}
|
||||
|
||||
export type RoomsProps = {
|
||||
rooms: RoomData[]
|
||||
}
|
||||
@@ -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?: {
|
||||
|
||||
Reference in New Issue
Block a user