feat(WEB-170): edit profile view
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user