You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -262,8 +266,8 @@ export default function DashboardView({ isOpen, onOpenChange, user, userRole, ha
262
266
<>
263
267
<TabsContentvalue="users"className="mt-0">
264
268
<CardclassName="bg-card/50 backdrop-blur-sm border-border/50"><CardHeader><CardTitle>User Management</CardTitle><CardDescription>Approve, ban, or delete user accounts.</CardDescription></CardHeader><CardContent>
@@ -299,7 +303,34 @@ export default function DashboardView({ isOpen, onOpenChange, user, userRole, ha
299
303
</TabsContent>
300
304
</>
301
305
)}
302
-
<TabsContentvalue="settings"className="mt-0"><CardclassName="bg-card/50 backdrop-blur-sm border-border/50"><CardHeader><CardTitle>Account Settings</CardTitle><CardDescription>Manage your account and payment information.</CardDescription></CardHeader><CardContent><Form{...settingsForm}><formonSubmit={settingsForm.handleSubmit(onSettingsSubmit)}className="space-y-8"><div><h3className="text-lg font-medium mb-4">Profile</h3><divclassName="space-y-4"><FormFieldcontrol={settingsForm.control}name="name"render={({ field })=>(<FormItem><FormLabel>Full Name</FormLabel><FormControl><Inputplaceholder="Your full name"{...field}/></FormControl><FormMessage/></FormItem>)}/><FormFieldcontrol={settingsForm.control}name="email"render={({ field })=>(<FormItem><divclassName="flex justify-between items-center"><FormLabel>Email</FormLabel>{!isEditingEmail&&(<Buttontype="button"variant="link"className="p-0 h-auto text-sm"onClick={()=>setIsEditingEmail(true)}>Edit</Button>)}</div><FormControl><Inputtype="email"placeholder="your@email.com"{...field}readOnly={!isEditingEmail}/></FormControl><FormMessage/></FormItem>)}/></div></div><Buttontype="submit">Save Changes</Button></form></Form></CardContent></Card></TabsContent>
<FormFieldcontrol={settingsForm.control}name="name"render={({ field })=>(<FormItem><FormLabel>Full Name</FormLabel><FormControl><Inputplaceholder="Your full name"{...field}/></FormControl><FormMessage/></FormItem>)}/>
319
+
<FormFieldcontrol={settingsForm.control}name="email"render={({ field })=>(<FormItem><divclassName="flex justify-between items-center"><FormLabel>Email</FormLabel>{!isEditingEmail&&(<Buttontype="button"variant="link"className="p-0 h-auto text-sm"onClick={()=>setIsEditingEmail(true)}>Edit</Button>)}</div><FormControl><Inputtype="email"placeholder="your@email.com"{...field}readOnly={!isEditingEmail}/></FormControl><FormMessage/></FormItem>)}/>
0 commit comments