SW-3270 move interactive map to design system or booking flow * wip * wip * merge * wip * add support for locales in design-system * add story for HotelCard * setup alias * . * remove tracking from design-system for hotelcard * pass isUserLoggedIn * export design-system-new-deprecated.css from design-system * Add HotelMarkerByType to Storybook * Add interactive map to Storybook * fix reactintl in vitest * rename env variables * . * fix background colors * add storybook stories for <Link /> * merge * fix tracking for when clicking 'See rooms' in InteractiveMap * Merge branch 'master' of bitbucket.org:scandic-swap/web into SW-3270-move-interactive-map-to-design-system-or-booking-flow * remove deprecated comment Approved-by: Anton Gunnarsson
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
import { HotelCardSkeleton } from "@scandic-hotels/design-system/HotelCard/HotelCardSkeleton"
|
|
import SkeletonShimmer from "@scandic-hotels/design-system/SkeletonShimmer"
|
|
|
|
import styles from "./selectHotel.module.css"
|
|
|
|
type Props = {
|
|
count?: number
|
|
}
|
|
|
|
export function SelectHotelSkeleton({ count = 4 }: Props) {
|
|
return (
|
|
<div className={styles.skeletonContainer}>
|
|
<header className={styles.header}>
|
|
<div className={styles.headerContent}>
|
|
<div className={styles.title}>
|
|
<div className={styles.cityInformation}>
|
|
<SkeletonShimmer height={"25px"} width={"200px"} />
|
|
</div>
|
|
<div className={styles.sorter}>
|
|
<SkeletonShimmer height={"60px"} width={"100%"} />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<main className={styles.main}>
|
|
<div className={styles.sideBar}>
|
|
<div className={styles.sideBarItem}>
|
|
<SkeletonShimmer height={"280px"} width={"340px"} />
|
|
</div>
|
|
<div className={styles.sideBarItem}>
|
|
<SkeletonShimmer height={"400px"} width={"340px"} />
|
|
</div>
|
|
</div>
|
|
<div className={styles.hotelList}>
|
|
{Array.from({ length: count }).map((_, index) => (
|
|
<HotelCardSkeleton key={index} />
|
|
))}
|
|
</div>
|
|
</main>
|
|
</div>
|
|
)
|
|
}
|