Merged in feat/SW-630-alerts-on-hotel-card (pull request #909)
Feat/SW-630 alerts on hotel card Approved-by: Hrishikesh Vaipurkar
This commit is contained in:
@@ -85,6 +85,12 @@
|
|||||||
min-width: 160px;
|
min-width: 160px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.specialAlerts {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: var(--Spacing-x1);
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 1367px) {
|
@media screen and (min-width: 1367px) {
|
||||||
.card.pageListing {
|
.card.pageListing {
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { selectHotelMap } from "@/constants/routes/hotelReservation"
|
|||||||
|
|
||||||
import { mapFacilityToIcon } from "@/components/ContentType/HotelPage/data"
|
import { mapFacilityToIcon } from "@/components/ContentType/HotelPage/data"
|
||||||
import ImageGallery from "@/components/ImageGallery"
|
import ImageGallery from "@/components/ImageGallery"
|
||||||
|
import Alert from "@/components/TempDesignSystem/Alert"
|
||||||
import Button from "@/components/TempDesignSystem/Button"
|
import Button from "@/components/TempDesignSystem/Button"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
import Divider from "@/components/TempDesignSystem/Divider"
|
||||||
import Link from "@/components/TempDesignSystem/Link"
|
import Link from "@/components/TempDesignSystem/Link"
|
||||||
@@ -132,6 +133,13 @@ export default function HotelCard({
|
|||||||
hotel={hotelData}
|
hotel={hotelData}
|
||||||
showCTA={true}
|
showCTA={true}
|
||||||
/>
|
/>
|
||||||
|
{hotelData.specialAlerts.length > 0 && (
|
||||||
|
<div className={styles.specialAlerts}>
|
||||||
|
{hotelData.specialAlerts.map((alert) => (
|
||||||
|
<Alert key={alert.id} type={alert.type} text={alert.text} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</section>
|
</section>
|
||||||
<div className={styles.prices}>
|
<div className={styles.prices}>
|
||||||
<HotelPriceList price={price} />
|
<HotelPriceList price={price} />
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ export default function Alert({
|
|||||||
<h2>{heading}</h2>
|
<h2>{heading}</h2>
|
||||||
</Body>
|
</Body>
|
||||||
) : null}
|
) : null}
|
||||||
|
{text ? (
|
||||||
<Body className={styles.text}>
|
<Body className={styles.text}>
|
||||||
{text}
|
{text}
|
||||||
{phoneContact?.phoneNumber ? (
|
{phoneContact?.phoneNumber ? (
|
||||||
@@ -61,6 +62,7 @@ export default function Alert({
|
|||||||
</>
|
</>
|
||||||
) : null}
|
) : null}
|
||||||
</Body>
|
</Body>
|
||||||
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
{link ? (
|
{link ? (
|
||||||
<Link color="burgundy" href={link.url}>
|
<Link color="burgundy" href={link.url}>
|
||||||
|
|||||||
Reference in New Issue
Block a user