feat: add data handling to EarnAndBurn
This commit is contained in:
33
types/components/myPages/myPage/earnAndBurn.ts
Normal file
33
types/components/myPages/myPage/earnAndBurn.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import { Lang } from "@/constants/languages"
|
||||
|
||||
export type EarnAndBurnProps = {
|
||||
lang: Lang
|
||||
}
|
||||
|
||||
type Transaction = {
|
||||
checkInDate: string
|
||||
checkOutDate: string
|
||||
awardPoints: number
|
||||
hotelName: string
|
||||
city: string
|
||||
nights: number
|
||||
confirmationNumber: string
|
||||
}
|
||||
|
||||
export type Page = {
|
||||
data: Transaction[]
|
||||
nextCursor?: number
|
||||
}
|
||||
|
||||
export type RowProps = {
|
||||
lang: Lang
|
||||
transaction: {
|
||||
checkInDate: string
|
||||
checkOutDate: string
|
||||
awardPoints: number
|
||||
hotelName: string
|
||||
city: string
|
||||
nights: number
|
||||
confirmationNumber: string
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user