feat(WEB-162): final design edit profile page
This commit is contained in:
committed by
Christel Westerberg
parent
5f3e417593
commit
d84efcbb0f
@@ -1,13 +1,13 @@
|
||||
"use server"
|
||||
|
||||
import { editProfileSchema } from "@/components/MyProfile/Profile/Edit/Form/schema"
|
||||
// import { editProfileSchema } from "@/components/Forms/Edit/Profile/schema"
|
||||
import { ZodError } from "zod"
|
||||
|
||||
import { type State, Status } from "@/types/components/myPages/myProfile/edit"
|
||||
|
||||
export async function editProfile(_prevState: State, values: FormData) {
|
||||
try {
|
||||
const data = editProfileSchema.parse(Object.fromEntries(values.entries()))
|
||||
const data = Object.fromEntries(values.entries())
|
||||
|
||||
/**
|
||||
* TODO: Update profile data when endpoint from
|
||||
|
||||
Reference in New Issue
Block a user