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
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
export type ShowMoreButtonParams = {
|
||||
loadMoreData: () => void
|
||||
disabled: boolean
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import type { Stay } from "../myPage/stay"
|
||||
|
||||
export type Page = {
|
||||
data: Stay[]
|
||||
nextCursor?: number
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -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