feat(WEB-162): final design for my profile page

This commit is contained in:
Simon Emanuelsson
2024-06-07 10:36:23 +02:00
committed by Christel Westerberg
parent a7b04df7b6
commit 5f3e417593
96 changed files with 802 additions and 494 deletions
@@ -4,12 +4,12 @@ import type { UserQueryRouter } from "../user"
export type TransactionResponse = Awaited<
ReturnType<UserQueryRouter["transaction"]["friendTransactions"]>
>
export type TransactionsObject = NonNullable<TransactionResponse>
export type Transactions = NonNullable<TransactionResponse>["data"]
export type Transaction = NonNullable<TransactionResponse>["data"][number]
export type TransactionsNonNullResponseObject = NonNullable<TransactionResponse>
export type Transactions = NonNullable<TransactionsNonNullResponseObject>["data"]
export type Transaction = NonNullable<TransactionsNonNullResponseObject>["data"][number]
export type ClientEarnAndBurnProps = {
initialData: TransactionsObject
initialData: TransactionsNonNullResponseObject
lang: Lang
}
@@ -1,6 +0,0 @@
import type { CardProps } from "./card/card"
import type { User } from "@/types/user"
export interface ContainerProps extends CardProps {
user: User
}
@@ -1,10 +1,5 @@
export type ProfileLayoutProps = {
communication: React.ReactNode
creditCards: React.ReactNode
edit: React.ReactNode
membershipCard: React.ReactNode
password: React.ReactNode
profile: React.ReactNode
view: React.ReactNode
wishes: React.ReactNode
}
+2 -2
View File
@@ -6,8 +6,8 @@ export type PreviousStaysResponse = Awaited<
>
export type PreviousStaysNonNullResponseObject =
NonNullable<PreviousStaysResponse>
export type PreviousStays = NonNullable<PreviousStaysResponse>["data"]
export type PreviousStay = NonNullable<PreviousStaysResponse>["data"][number]
export type PreviousStays = NonNullable<PreviousStaysNonNullResponseObject>["data"]
export type PreviousStay = NonNullable<PreviousStaysNonNullResponseObject>["data"][number]
export interface PreviousStaysClientProps {
lang: Lang
+2 -2
View File
@@ -6,8 +6,8 @@ export type UpcomingStaysResponse = Awaited<
>
export type UpcomingStaysNonNullResponseObject =
NonNullable<UpcomingStaysResponse>
export type UpcomingStays = NonNullable<UpcomingStaysResponse>["data"]
export type UpcomingStay = NonNullable<UpcomingStaysResponse>["data"][number]
export type UpcomingStays = NonNullable<UpcomingStaysNonNullResponseObject>["data"]
export type UpcomingStay = NonNullable<UpcomingStaysNonNullResponseObject>["data"][number]
export interface UpcomingStaysClientProps {
lang: Lang