feat: static my stays
This commit is contained in:
7
types/components/myPages/myPage/stay.ts
Normal file
7
types/components/myPages/myPage/stay.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export type Stay = {
|
||||
uid: string
|
||||
dateArrive: Date
|
||||
dateDepart: Date
|
||||
guests: number
|
||||
hotel: string
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
import type { Stay, User } from "@/types/user"
|
||||
|
||||
export type StaysProps = {
|
||||
stays: User["stays"]
|
||||
}
|
||||
|
||||
export type StayProps = Stay
|
||||
8
types/components/myPages/stays/stayCard.ts
Normal file
8
types/components/myPages/stays/stayCard.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Stay } from "../myPage/stay"
|
||||
import { Lang } from "@/constants/languages"
|
||||
|
||||
export type StayCardProps = {
|
||||
lang: Lang
|
||||
showDayCount?: boolean
|
||||
stay: Stay
|
||||
}
|
||||
7
types/components/myPages/stays/stayList.ts
Normal file
7
types/components/myPages/stays/stayList.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Lang } from "@/constants/languages"
|
||||
import { Stay } from "../myPage/stay"
|
||||
|
||||
export type StayListProps = {
|
||||
stays: Stay[]
|
||||
lang: Lang
|
||||
}
|
||||
4
types/components/myPages/stays/title.ts
Normal file
4
types/components/myPages/stays/title.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export type HeaderProps = {
|
||||
title: string
|
||||
subtitle: string
|
||||
}
|
||||
@@ -12,13 +12,6 @@ type ShortcutLink = {
|
||||
title: string
|
||||
}
|
||||
|
||||
export type Stay = {
|
||||
dateArrive: Date
|
||||
dateDepart: Date
|
||||
guests: number
|
||||
hotel: string
|
||||
}
|
||||
|
||||
type Victory = {
|
||||
tag: string
|
||||
title: string
|
||||
@@ -33,6 +26,5 @@ export interface User extends z.infer<typeof getUserSchema> {
|
||||
journeys: Journey[]
|
||||
nights: number
|
||||
shortcuts: ShortcutLink[]
|
||||
stays: Stay[]
|
||||
victories: Victory[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user