feat(SW-340): Added scroll to top button

This commit is contained in:
Pontus Dreij
2024-11-08 10:00:53 +01:00
parent 2748120890
commit 5f46844b9b
22 changed files with 238 additions and 99 deletions

View File

@@ -17,12 +17,13 @@ import { hotelCardVariants } from "./variants"
import styles from "./hotelCard.module.css"
import { HotelCardListingType } from "@/types/components/hotelReservation/selectHotel/hotelCardListingProps"
import { HotelCardListingTypeEnum } from "@/types/components/hotelReservation/selectHotel/hotelCardListingProps"
import type { HotelCardProps } from "@/types/components/hotelReservation/selectHotel/hotelCardProps"
export default function HotelCard({
hotel,
type = HotelCardListingType.PageListing,
type = HotelCardListingTypeEnum.PageListing,
state = "default",
}: HotelCardProps) {
const intl = useIntl()
@@ -33,6 +34,7 @@ export default function HotelCard({
const classNames = hotelCardVariants({
type,
state,
})
return (