feat(WEB-170): edit profile view

This commit is contained in:
Simon Emanuelsson
2024-04-11 18:51:38 +02:00
parent 82e4d40203
commit 9396b2c3d5
114 changed files with 3642 additions and 2171 deletions
+4
View File
@@ -0,0 +1,4 @@
export type IconProps = {
height?: number
width?: number
}
@@ -0,0 +1,34 @@
import type { EditProfileSchema } from "@/components/MyProfile/Profile/Edit/Form/schema"
import type { Control } from "react-hook-form"
import type { User } from "@/types/user"
export type EditFormProps = {
user: User
}
export type EditFormContentProps = {
control: Control<EditProfileSchema>
}
type E = {
message: string
path: string
}
export const enum Status {
error = "error",
success = "success",
}
type ErrorState = {
errors?: E[]
message: string
status: Status.error
}
type SuccessState = {
message: string
status: Status.success
}
export type State = ErrorState | SuccessState | null
@@ -0,0 +1,10 @@
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
}