fix confirm dialog style
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user