chore: add load more functionality, with refactored css
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { UUID } from "crypto"
|
||||
|
||||
export type Stay = {
|
||||
uid: string
|
||||
uid: UUID
|
||||
dateArrive: Date
|
||||
dateDepart: Date
|
||||
guests: number
|
||||
|
||||
4
types/components/myPages/myStays/button.ts
Normal file
4
types/components/myPages/myStays/button.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export type ShowMoreButtonParams = {
|
||||
loadMoreData: () => void
|
||||
disabled: boolean
|
||||
}
|
||||
6
types/components/myPages/myStays/page.ts
Normal file
6
types/components/myPages/myStays/page.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { Stay } from "../myPage/stay"
|
||||
|
||||
export type Page = {
|
||||
data: Stay[]
|
||||
nextCursor?: number
|
||||
}
|
||||
8
types/components/myPages/myStays/stayCard.ts
Normal file
8
types/components/myPages/myStays/stayCard.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { Lang } from "@/constants/languages"
|
||||
import type { Stay } from "../myPage/stay"
|
||||
|
||||
export type StayCardProps = {
|
||||
lang: Lang
|
||||
shouldShowDayCount?: boolean
|
||||
stay: Stay
|
||||
}
|
||||
7
types/components/myPages/myStays/stayList.ts
Normal file
7
types/components/myPages/myStays/stayList.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { Lang } from "@/constants/languages"
|
||||
import type { Stay } from "../myPage/stay"
|
||||
|
||||
export type StayListProps = {
|
||||
stays: Stay[]
|
||||
lang: Lang
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
import { Stay } from "../myPage/stay"
|
||||
import { Lang } from "@/constants/languages"
|
||||
|
||||
export type StayCardProps = {
|
||||
lang: Lang
|
||||
showDayCount?: boolean
|
||||
stay: Stay
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
import { Lang } from "@/constants/languages"
|
||||
import { Stay } from "../myPage/stay"
|
||||
|
||||
export type StayListProps = {
|
||||
stays: Stay[]
|
||||
lang: Lang
|
||||
}
|
||||
Reference in New Issue
Block a user