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:
Bianca Widstam
2024-10-29 13:54:12 +00:00
parent 8bea10a282
commit fc8844eb96
15 changed files with 82 additions and 111 deletions

View File

@@ -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
}

View File

@@ -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 }

View File

@@ -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