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

View File

@ -42,7 +42,7 @@ export function ConfirmDialog({
<AlertDialogCancel></AlertDialogCancel>
<AlertDialogAction
disabled={busy}
className={destructive ? 'bg-destructive text-white hover:bg-destructive/90' : undefined}
variant={destructive ? 'destructive' : 'default'}
onClick={async (event) => {
event.preventDefault()
setBusy(true)

View File

@ -364,7 +364,7 @@ function UsersPage() {
<AlertDialogFooter>
<AlertDialogCancel onClick={() => setTogglingUser(null)}></AlertDialogCancel>
<AlertDialogAction
className="bg-destructive text-white hover:bg-destructive/90"
variant="destructive"
onClick={() => {
if (togglingUser) {
void handleStatusToggle(togglingUser.user, false)