diff --git a/src/views/ProfileEdit.tsx b/src/views/ProfileEdit.tsx index 3ae6608..3b64bf1 100644 --- a/src/views/ProfileEdit.tsx +++ b/src/views/ProfileEdit.tsx @@ -2,7 +2,7 @@ import { useCallback, useEffect, useMemo, useState } from "react"; import { useQuery, useQueryClient } from "@tanstack/react-query"; -import { Camera, Check, CircleAlert, Eye, Loader2, LockKeyhole, Trash2, UserRound } from "lucide-react"; +import { Camera, Check, CircleAlert, Loader2, Trash2 } from "lucide-react"; import AsyncSearchableCombobox from "@/components/AsyncSearchableCombobox"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { Button } from "@/components/ui/button"; @@ -41,13 +41,6 @@ const emptyForm: EditForm = { show_public_profile_details: false, }; -const editorSections = [ - { id: "identity", label: "اطلاعات فردی", icon: UserRound }, - { id: "academic", label: "اطلاعات دانشگاهی", icon: LockKeyhole }, - { id: "about", label: "درباره من", icon: Camera }, - { id: "visibility", label: "پروفایل عمومی", icon: Eye }, -] as const; - export default function ProfileEdit() { const { isAuthenticated, loading, setUser } = useAuth(); const queryClient = useQueryClient(); @@ -261,7 +254,7 @@ export default function ProfileEdit() {
-

حساب کاربری / پروفایل

+

حساب کاربری

ویرایش پروفایل

@@ -291,20 +284,18 @@ export default function ProfileEdit() { -
- - -
+
- اطلاعات فردی - نامی که در سایت و پروفایل عمومی شما نمایش داده می‌شود + + + + + اطلاعات فردی + + این اطلاعات در پروفایل عمومی شما نمایش داده می‌شوند.
updateForm("first_name", event.target.value)} className="mt-2 w-full min-w-0 text-right" />
@@ -339,13 +330,35 @@ export default function ProfileEdit() {

) : null}
+
+ +