feat: WEB-210 Updated as per review comments

This commit is contained in:
Hrishikesh Vaipurkar
2024-07-02 11:53:10 +02:00
parent 1c5859a252
commit d33e038703
5 changed files with 67 additions and 54 deletions

View File

@@ -26,7 +26,7 @@ export default async function SoonestStays({
<SectionHeader title={title} subtitle={subtitle} link={link} />
{response.data.length ? (
<Grids.Stackable>
{response.data.map((stay) => (
{response.data.map((stay: any) => (
<StayCard
key={stay.attributes.confirmationNumber}
lang={lang}

View File

@@ -22,7 +22,7 @@ export default function StayCard({ stay, lang }: StayCardProps) {
const departDateTime = depart.format("YYYY-MM-DD")
return (
<Link href={bookingUrl ?? ""}>
<Link href={bookingUrl}>
<article className={styles.stay}>
<Image
className={styles.image}