feat: static my stays

This commit is contained in:
Michael Zetterberg
2024-04-19 17:07:23 +02:00
parent 837604e6ea
commit 2f6500f46d
33 changed files with 576 additions and 77 deletions

View File

@@ -0,0 +1,7 @@
export type Stay = {
uid: string
dateArrive: Date
dateDepart: Date
guests: number
hotel: string
}

View File

@@ -1,7 +0,0 @@
import type { Stay, User } from "@/types/user"
export type StaysProps = {
stays: User["stays"]
}
export type StayProps = Stay

View File

@@ -0,0 +1,8 @@
import { Stay } from "../myPage/stay"
import { Lang } from "@/constants/languages"
export type StayCardProps = {
lang: Lang
showDayCount?: boolean
stay: Stay
}

View File

@@ -0,0 +1,7 @@
import { Lang } from "@/constants/languages"
import { Stay } from "../myPage/stay"
export type StayListProps = {
stays: Stay[]
lang: Lang
}

View File

@@ -0,0 +1,4 @@
export type HeaderProps = {
title: string
subtitle: string
}

View File

@@ -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[]
}