feat: enhance stays with api data

This commit is contained in:
Christel Westerberg
2024-05-08 14:56:39 +02:00
parent 57fd59ebe2
commit 661a8019d3
18 changed files with 223 additions and 108 deletions

View File

@@ -2,13 +2,17 @@ import StayCard from "../StayCard"
import styles from "./stayList.module.css"
import { StayListProps } from "@/types/components/myPages/myStays/stayList"
import { StayListProps } from "@/types/components/myPages/stays/stayList"
export default function StayList({ lang, stays }: StayListProps) {
return (
<section className={styles.stays}>
{stays.map((stay) => (
<StayCard key={stay.uid} stay={stay} lang={lang} />
<StayCard
key={stay.attributes.confirmationNumber}
stay={stay}
lang={lang}
/>
))}
</section>
)