fix: handle non-escaped newlines
This commit is contained in:
@@ -33,8 +33,12 @@ export default function EnterDetailsSidePeek({ hotel }: SidePeekProps) {
|
|||||||
<Divider />
|
<Divider />
|
||||||
<section className={styles.spacing}>
|
<section className={styles.spacing}>
|
||||||
<Body>{hotel.hotelContent.texts.descriptions.medium}</Body>
|
<Body>{hotel.hotelContent.texts.descriptions.medium}</Body>
|
||||||
|
{hotel.hotelContent.texts.facilityInformation
|
||||||
<Body>{hotel.hotelContent.texts.facilityInformation}</Body>
|
.split(/[\n\r]/g)
|
||||||
|
.filter((p) => p)
|
||||||
|
.map((paragraph, idx) => (
|
||||||
|
<Body key={`facilityInfo-${idx}`}>{paragraph}</Body>
|
||||||
|
))}
|
||||||
</section>
|
</section>
|
||||||
</article>
|
</article>
|
||||||
</SidePeek>
|
</SidePeek>
|
||||||
|
|||||||
Reference in New Issue
Block a user