feat: enhance stays with api data

This commit is contained in:
Christel Westerberg
2024-05-08 14:56:39 +02:00
parent 57fd59ebe2
commit 661a8019d3
18 changed files with 223 additions and 108 deletions

View File

@@ -1,9 +0,0 @@
import { UUID } from "crypto"
export type Stay = {
uid: UUID
dateArrive: Date
dateDepart: Date
guests: number
hotel: string
}

View File

@@ -1,4 +1,4 @@
import type { Stay } from "../myPage/stay"
import { Stay } from "@/server/routers/user/output"
export type Page = {
data: Stay[]

View File

@@ -1,5 +1,5 @@
import type { Lang } from "@/constants/languages"
import type { Stay } from "../myPage/stay"
import type { Stay } from "@/server/routers/user/output"
export type StayCardProps = {
lang: Lang

View File

@@ -1,5 +1,5 @@
import type { Lang } from "@/constants/languages"
import type { Stay } from "../myPage/stay"
import type { Stay } from "@/server/routers/user/output"
export type StayListProps = {
stays: Stay[]