fix confirm dialog style

This commit is contained in:
2026-08-11 22:07:39 +08:00
parent 2e02eee66c
commit 703d4dc583
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ export function ConfirmDialog({
<AlertDialogCancel></AlertDialogCancel> <AlertDialogCancel></AlertDialogCancel>
<AlertDialogAction <AlertDialogAction
disabled={busy} disabled={busy}
className={destructive ? 'bg-destructive text-white hover:bg-destructive/90' : undefined} variant={destructive ? 'destructive' : 'default'}
onClick={async (event) => { onClick={async (event) => {
event.preventDefault() event.preventDefault()
setBusy(true) setBusy(true)
+1 -1
View File
@@ -364,7 +364,7 @@ function UsersPage() {
<AlertDialogFooter> <AlertDialogFooter>
<AlertDialogCancel onClick={() => setTogglingUser(null)}></AlertDialogCancel> <AlertDialogCancel onClick={() => setTogglingUser(null)}></AlertDialogCancel>
<AlertDialogAction <AlertDialogAction
className="bg-destructive text-white hover:bg-destructive/90" variant="destructive"
onClick={() => { onClick={() => {
if (togglingUser) { if (togglingUser) {
void handleStatusToggle(togglingUser.user, false) void handleStatusToggle(togglingUser.user, false)