fix: SW-691 SW-1006 Removed rooms left label when no availability
This commit is contained in:
@@ -117,14 +117,15 @@ export default function RoomCard({
|
|||||||
<div>
|
<div>
|
||||||
<div className={styles.imageContainer}>
|
<div className={styles.imageContainer}>
|
||||||
<div className={styles.chipContainer}>
|
<div className={styles.chipContainer}>
|
||||||
{roomConfiguration.roomsLeft < 5 && (
|
{roomConfiguration.roomsLeft > 0 &&
|
||||||
<span className={styles.chip}>
|
roomConfiguration.roomsLeft < 5 && (
|
||||||
<Footnote
|
<span className={styles.chip}>
|
||||||
color="burgundy"
|
<Footnote
|
||||||
textTransform="uppercase"
|
color="burgundy"
|
||||||
>{`${roomConfiguration.roomsLeft} ${intl.formatMessage({ id: "Left" })}`}</Footnote>
|
textTransform="uppercase"
|
||||||
</span>
|
>{`${roomConfiguration.roomsLeft} ${intl.formatMessage({ id: "Left" })}`}</Footnote>
|
||||||
)}
|
</span>
|
||||||
|
)}
|
||||||
{roomConfiguration.features
|
{roomConfiguration.features
|
||||||
.filter((feature) => selectedPackages.includes(feature.code))
|
.filter((feature) => selectedPackages.includes(feature.code))
|
||||||
.map((feature) => (
|
.map((feature) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user