Merged in feat/LOY-424-Sidepeek-Past-Stays (pull request #3270)

feat(LOY-424): Load More Past Stays via Sidepeek

* feat(LOY-424): Load More Past Stays via Sidepeek

* chore(LOY-424): use new section header

* fix(LOY-424): remove uneeded nextCursor check


Approved-by: Emma Zettervall
This commit is contained in:
Chuma Mcphoy (We Ahead)
2025-12-03 15:19:25 +00:00
parent c6fff09c73
commit 30b9d14fb0
8 changed files with 229 additions and 46 deletions

View File

@@ -0,0 +1,30 @@
"use client"
import { useIntl } from "react-intl"
import { Button } from "@scandic-hotels/design-system/Button"
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
import styles from "./seeAllCard.module.css"
interface SeeAllCardProps {
onPress: () => void
}
export function SeeAllCard({ onPress }: SeeAllCardProps) {
const intl = useIntl()
return (
<div className={styles.card}>
<Button
variant="Secondary"
size="Medium"
typography="Body/Paragraph/mdBold"
onPress={onPress}
>
{intl.formatMessage({ id: "common.seeAll", defaultMessage: "See all" })}
<MaterialIcon icon="chevron_right" color="CurrentColor" />
</Button>
</div>
)
}

View File

@@ -0,0 +1,12 @@
.card {
border-radius: var(--Corner-radius-lg);
border: 1px solid var(--Border-Default);
background: var(--Surface-Secondary-Default);
display: flex;
padding: var(--Space-x15);
align-items: center;
justify-content: center;
align-self: stretch;
height: 100%;
min-height: 134px;
}