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
@@ -326,9 +326,9 @@ export default function DashboardView({ isOpen, onOpenChange, user, userRole, au
326
326
<TabsContentvalue="users"className="mt-0">
327
327
<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>
@@ -457,8 +457,8 @@ export default function DashboardView({ isOpen, onOpenChange, user, userRole, au
457
457
</ScrollArea>
458
458
</Tabs>
459
459
</div>
460
-
<AlertDialogopen={!!userToDelete}onOpenChange={(open)=>!open&&setUserToDelete(null)}><AlertDialogContent><AlertDialogHeader><AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle><AlertDialogDescription>This action cannot be undone. This will permanently delete the user account and remove their data from our servers.</AlertDialogDescription></AlertDialogHeader><AlertDialogFooter><AlertDialogCancel>Cancel</AlertDialogCancel><AlertDialogActiononClick={()=>{if(userToDelete){handleDeleteUser(userToDelete.id);setUserToDelete(null);}}}>Delete</AlertDialogAction></AlertDialogFooter></AlertDialogContent></AlertDialog>
461
-
<AlertDialogopen={!!userToBan}onOpenChange={(open)=>!open&&setUserToBan(null)}><AlertDialogContent><AlertDialogHeader><AlertDialogTitle>Are you sure?</AlertDialogTitle><AlertDialogDescription>This will {userToBan?.is_banned? "unban" : "ban"} the user, {userToBan?.is_banned? "allowing" : "preventing"} them from logging in. Do you want to continue?</AlertDialogDescription></AlertDialogHeader><AlertDialogFooter><AlertDialogCancel>Cancel</AlertDialogCancel><AlertDialogActiononClick={()=>{if(userToBan){handleToggleBanUser(userToBan.id);setUserToBan(null);}}}>{userToBan?.is_banned ? "Unban User" : "Ban User"}</AlertDialogAction></AlertDialogFooter></AlertDialogContent></AlertDialog>
460
+
<AlertDialogopen={!!userToDelete}onOpenChange={(open)=>!open&&setUserToDelete(null)}><AlertDialogContent><AlertDialogHeader><AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle><AlertDialogDescription>This action cannot be undone. This will permanently delete the user account and remove their data from our servers.</AlertDialogDescription></AlertDialogHeader><AlertDialogFooter><AlertDialogCancel>Cancel</AlertDialogCancel><AlertDialogActiononClick={()=>{if(userToDelete){handleDeleteUser(userToDelete.uid);setUserToDelete(null);}}}>Delete</AlertDialogAction></AlertDialogFooter></AlertDialogContent></AlertDialog>
461
+
<AlertDialogopen={!!userToBan}onOpenChange={(open)=>!open&&setUserToBan(null)}><AlertDialogContent><AlertDialogHeader><AlertDialogTitle>Are you sure?</AlertDialogTitle><AlertDialogDescription>This will {userToBan?.status==='banned'? "unban" : "ban"} the user, {userToBan?.status==='banned'? "allowing" : "preventing"} them from logging in. Do you want to continue?</AlertDialogDescription></AlertDialogHeader><AlertDialogFooter><AlertDialogCancel>Cancel</AlertDialogCancel><AlertDialogActiononClick={()=>{if(userToBan){handleToggleBanUser(userToBan.uid);setUserToBan(null);}}}>{userToBan?.status==='banned' ? "Unban User" : "Ban User"}</AlertDialogAction></AlertDialogFooter></AlertDialogContent></AlertDialog>
0 commit comments