feat(WEB-162): final design edit profile page

This commit is contained in:
Simon Emanuelsson
2024-06-18 08:15:57 +02:00
committed by Christel Westerberg
parent 5f3e417593
commit d84efcbb0f
81 changed files with 1538 additions and 711 deletions

View File

@@ -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