fix(SW-96): use import type
This commit is contained in:
@@ -5,7 +5,7 @@ import { getIntl } from "@/i18n"
|
||||
|
||||
import styles from "./previewImages.module.css"
|
||||
|
||||
import { PreviewImagesProps } from "@/types/components/hotelPage/previewImages"
|
||||
import type { PreviewImagesProps } from "@/types/components/hotelPage/previewImages"
|
||||
|
||||
export default async function PreviewImages({ images }: PreviewImagesProps) {
|
||||
const intl = await getIntl()
|
||||
|
||||
@@ -3,7 +3,6 @@ import { FC } from "react"
|
||||
import { getIconByIconName } from "@/components/Icons/get-icon-by-icon-name"
|
||||
|
||||
import { IconName, IconProps } from "@/types/components/icon"
|
||||
import { ImageItem } from "@/types/components/lightbox/lightbox"
|
||||
|
||||
const facilityToIconMap: { [key: string]: IconName } = {
|
||||
Bar: IconName.Bar,
|
||||
|
||||
@@ -10,7 +10,7 @@ import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||
|
||||
import styles from "./Lightbox.module.css"
|
||||
|
||||
import { FullViewProps } from "@/types/components/lightbox/lightbox"
|
||||
import type { FullViewProps } from "@/types/components/lightbox/lightbox"
|
||||
|
||||
export default function FullView({
|
||||
image,
|
||||
|
||||
@@ -10,7 +10,7 @@ import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||
|
||||
import styles from "./Lightbox.module.css"
|
||||
|
||||
import { GalleryProps } from "@/types/components/lightbox/lightbox"
|
||||
import type { GalleryProps } from "@/types/components/lightbox/lightbox"
|
||||
|
||||
export default function Gallery({
|
||||
images,
|
||||
|
||||
@@ -8,7 +8,7 @@ import Gallery from "./Gallery"
|
||||
|
||||
import styles from "./Lightbox.module.css"
|
||||
|
||||
import { LightboxProps } from "@/types/components/lightbox/lightbox"
|
||||
import type { LightboxProps } from "@/types/components/lightbox/lightbox"
|
||||
|
||||
export default function Lightbox({ images, children }: LightboxProps) {
|
||||
const [isOpen, setIsOpen] = useState(false)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ImageItem } from "@/types/components/lightbox/lightbox"
|
||||
import { Hotel } from "@/types/hotel"
|
||||
import type { ImageItem } from "@/types/components/lightbox/lightbox"
|
||||
import type { Hotel } from "@/types/hotel"
|
||||
|
||||
export function extractHotelImages(hotelData: Hotel): ImageItem[] {
|
||||
const images: ImageItem[] = []
|
||||
|
||||
Reference in New Issue
Block a user