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:
@@ -3,11 +3,12 @@ import { serverClient } from "@/lib/trpc/server"
|
||||
|
||||
import ClaimPoints from "@/components/Blocks/DynamicContent/Points/ClaimPoints"
|
||||
import { Section } from "@/components/Section"
|
||||
import SectionHeader from "@/components/Section/Header/Deprecated"
|
||||
import { SectionHeader } from "@/components/Section/Header"
|
||||
import SectionLink from "@/components/Section/Link"
|
||||
|
||||
import { Cards } from "./Cards"
|
||||
import { ClientPreviousStays } from "./Client"
|
||||
import { INITIAL_STAYS_FETCH_LIMIT } from "./data"
|
||||
|
||||
import styles from "./previous.module.css"
|
||||
|
||||
@@ -19,7 +20,7 @@ export default async function PreviousStays({
|
||||
}: AccountPageComponentProps) {
|
||||
const caller = await serverClient()
|
||||
const initialPreviousStays = await caller.user.stays.previous({
|
||||
limit: 6,
|
||||
limit: INITIAL_STAYS_FETCH_LIMIT,
|
||||
})
|
||||
|
||||
if (!initialPreviousStays?.data.length) {
|
||||
@@ -31,7 +32,7 @@ export default async function PreviousStays({
|
||||
return (
|
||||
<Section>
|
||||
<div className={styles.header}>
|
||||
<SectionHeader title={title} link={link} />
|
||||
<SectionHeader heading={title ?? undefined} link={link} />
|
||||
<ClaimPoints />
|
||||
</div>
|
||||
<StaysComponent initialPreviousStays={initialPreviousStays} />
|
||||
|
||||
Reference in New Issue
Block a user