refactor(profile): move edit action to profile page
This commit is contained in:
@@ -545,6 +545,12 @@ export default function Profile() {
|
||||
<>
|
||||
<Card className="overflow-hidden rounded-[2rem] border border-border/70 shadow-lg">
|
||||
<CardContent className="space-y-6 p-6 text-center">
|
||||
<div className="flex justify-start">
|
||||
<Button variant="outline" size="sm" className="rounded-full" onClick={() => setEditing(true)}>
|
||||
<PencilLine className="ml-2 h-4 w-4" />
|
||||
ویرایش
|
||||
</Button>
|
||||
</div>
|
||||
<div className="flex justify-center">{renderAvatarControl()}</div>
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold">{fullName}</h1>
|
||||
|
||||
Reference in New Issue
Block a user