This commit is contained in:
Giovanni Rezcjikov
2026-03-10 20:00:58 +03:00
parent d7615b4eb0
commit 77d429c8ba
31 changed files with 1098 additions and 504 deletions
@@ -8,7 +8,7 @@ import { Field, FieldError, FieldGroup, FieldLabel } from "@/components/ui/field
import { Input } from "@/components/ui/input";
import { Spinner } from "@/components/ui/spinner";
import { BirthdatePicker } from "@/components/ui/birthdate-picker";
import { UpdateUser } from "@/actions/auth";
import { updateUser } from "@/actions/auth";
import { toast } from "sonner";
import { Check, X } from "lucide-react";
@@ -36,7 +36,7 @@ export default function Profile({ user, setUser }: Props) {
const onSubmit: SubmitHandler<FormData> = async (data) => {
try {
const response = await UpdateUser(data.first_name, data.second_name, data.birth_date);
const response = await updateUser(data.first_name, data.second_name, data.birth_date);
if (response == null) toast(t("form.updateError"), { icon: <X size={16} /> })
else {