refactor: refactor according to PR comments

This commit is contained in:
Matilda Landström
2024-04-26 13:12:40 +02:00
parent 7480b212e2
commit 38d65f7b37
11 changed files with 67 additions and 85 deletions

View File

@@ -1,3 +1,4 @@
import MaxWidth from "@/components/MaxWidth"
import PreviousStays from "@/components/MyPages/Blocks/Stays/Previous"
import UpcomingStays from "@/components/MyPages/Blocks/Stays/Upcoming"
@@ -7,9 +8,9 @@ import { LangParams, PageArgs } from "@/types/params"
export default async function MyStays({ params }: PageArgs<LangParams>) {
return (
<main className={styles.container}>
<MaxWidth className={styles.container} tag="main">
<UpcomingStays lang={params.lang} />
<PreviousStays lang={params.lang} />
</main>
</MaxWidth>
)
}