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,5 +1,4 @@
.container {
max-width: var(--max-width);
display: grid;
gap: 2rem;
}

View File

@@ -5,5 +5,4 @@
min-height: 25rem;
background-color: var(--some-grey-color, #f2f2f2);
border-radius: 0.8rem;
max-width: var(--max-width);
}

View File

@@ -8,7 +8,7 @@ export default function EmptyPreviousStaysBlock() {
return (
<section className={styles.container}>
<Title level="h3" as="h5" uppercase>
{_("You have no previous stays.")}{" "}
{_("You have no previous stays.")}
</Title>
</section>
)

View File

@@ -33,7 +33,7 @@ export default function PreviousStays({ lang }: LangParams) {
subtitle={_(
"Revisit your stays and rekindle those our moments together, with ease."
)}
></Header>
/>
{data?.pages.length ? (
<ListContainer>
<StayList

View File

@@ -20,7 +20,6 @@
gap: 2.5rem;
background-color: var(--some-grey-color, #f2f2f2);
border-radius: 0.8rem;
max-width: var(--max-width);
margin-bottom: 0.5rem;
padding: 0 2rem;
}

View File

@@ -17,8 +17,8 @@ export default function EmptyUpcomingStaysBlock() {
{_("Where should you go next?")}
</span>
</Title>
<Button intent={"primary"} bgcolor={"quarternary"} asChild type="button">
<Link className={styles.link} href={"#"} key={"getInspired"}>
<Button intent="primary" bgcolor="quarternary" asChild type="button">
<Link className={styles.link} href={"#"} key="getInspired">
{_("Get inspired")}
</Link>
</Button>

View File

@@ -33,7 +33,7 @@ export default function UpcomingStays({ lang }: LangParams) {
subtitle={_(
"Excited about your next trip? So are we. Below are your upcoming stays with us, complete with all the details you need to make each visit perfect. Can't wait to welcome you back, friend!"
)}
></Header>
/>
{data?.pages.length ? (
<ListContainer>
<StayList