feat/SW-689-image-gallery-sizes (pull request #781)
Feat/SW-689 image gallery sizes * feat(SW-689): initial gallery changes * feat(SW-689): remove console.log * feat(SW-689): remove unneccessary code * feat(SW-689): change sizes * feat(SW-689): change size * feat(SW-689): add design for ipad for fullview * feat(SW-689): fix import type * feat(SW-689): fix tripAdvisor placement * feat(SW-689): fix image gallery type * feat(SW-689): fix check gallery length Approved-by: Christian Andolf Approved-by: Matilda Landström
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { ImageItem } from "@/types/components/lightbox/lightbox"
|
||||
import type { GalleryImage } from "@/types/hotel"
|
||||
|
||||
export type PreviewImagesProps = {
|
||||
images: ImageItem[]
|
||||
images: GalleryImage[]
|
||||
hotelName: string
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import type { GalleryImages } from "@/types/hotel"
|
||||
import type { GalleryImage } from "@/types/hotel"
|
||||
|
||||
export type ImageGalleryProps = { images: GalleryImages; title: string }
|
||||
export type ImageGalleryProps = { images: GalleryImage[]; title: string }
|
||||
|
||||
@@ -1,26 +1,22 @@
|
||||
export interface ImageItem {
|
||||
url: string
|
||||
alt: string
|
||||
title: string
|
||||
}
|
||||
import type { GalleryImage } from "@/types/hotel"
|
||||
|
||||
export interface LightboxProps {
|
||||
images: ImageItem[]
|
||||
images: GalleryImage[]
|
||||
dialogTitle: string /* Accessible title for dialog screen readers */
|
||||
children: React.ReactNode
|
||||
}
|
||||
|
||||
export interface GalleryProps {
|
||||
images: ImageItem[]
|
||||
images: GalleryImage[]
|
||||
dialogTitle: string
|
||||
onClose: () => void
|
||||
onSelectImage: (image: ImageItem) => void
|
||||
onSelectImage: (image: GalleryImage) => void
|
||||
onImageClick: () => void
|
||||
selectedImage: ImageItem | null
|
||||
selectedImage: GalleryImage | null
|
||||
}
|
||||
|
||||
export interface FullViewProps {
|
||||
image: ImageItem
|
||||
image: GalleryImage
|
||||
onClose: () => void
|
||||
onNext: () => void
|
||||
onPrev: () => void
|
||||
|
||||
Reference in New Issue
Block a user