diff --git a/apps/scandic-web/components/HotelReservation/SidePeek/index.tsx b/apps/scandic-web/components/HotelReservation/SidePeek/index.tsx
index 2b67bb627..5dd897473 100644
--- a/apps/scandic-web/components/HotelReservation/SidePeek/index.tsx
+++ b/apps/scandic-web/components/HotelReservation/SidePeek/index.tsx
@@ -37,10 +37,6 @@ export default function HotelReservationSidePeek() {
room.roomTypes.some((type) => type.code === roomTypeCode)
)
- function handleCloseClick() {
- window.history.back()
- }
-
useEffect(() => {
if (activeSidePeek) {
window.history.pushState(null, "", window.location.href)
@@ -71,7 +67,7 @@ export default function HotelReservationSidePeek() {
hotel={{ ...hotelData.hotel, url: hotelData.url }}
restaurants={hotelData.restaurants}
activeSidePeek={activeSidePeek}
- close={handleCloseClick}
+ close={closeFn}
showCTA={showCTA}
/>
>
)}
@@ -87,7 +83,7 @@ export default function HotelReservationSidePeek() {
)}
>
diff --git a/apps/scandic-web/components/ImageGallery/index.tsx b/apps/scandic-web/components/ImageGallery/index.tsx
index 93a0e3f0a..ec4ff029e 100644
--- a/apps/scandic-web/components/ImageGallery/index.tsx
+++ b/apps/scandic-web/components/ImageGallery/index.tsx
@@ -24,7 +24,7 @@ function ImageGallery({
hideLabel,
}: ImageGalleryProps) {
const intl = useIntl()
- const [lightboxIsOpen, setLightboxIsOpen] = useState(false)
+ const [isOpen, setIsOpen] = useState(false)
const [imageError, setImageError] = useState(false)
const imageProps = fill ? { fill, sizes } : { height, width: height * 1.5 }
@@ -52,7 +52,7 @@ function ImageGallery({