mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(core): handle incorrect style of the confirm delete button (#11725)
close AF-2401
This commit is contained in:
@@ -76,6 +76,9 @@ export function useRegisterBlocksuiteEditorCommands(
|
||||
title: doc.title$.value || t['Untitled'](),
|
||||
}),
|
||||
cancelText: t['com.affine.confirmModal.button.cancel'](),
|
||||
confirmButtonOptions: {
|
||||
variant: 'error',
|
||||
},
|
||||
confirmText: t.Delete(),
|
||||
onConfirm: async () => {
|
||||
try {
|
||||
|
||||
@@ -328,6 +328,9 @@ const ConflictList = ({
|
||||
title: docRecord.title$.value || t['Untitled'](),
|
||||
}),
|
||||
cancelText: t['com.affine.confirmModal.button.cancel'](),
|
||||
confirmButtonOptions: {
|
||||
variant: 'error',
|
||||
},
|
||||
confirmText: t.Delete(),
|
||||
onConfirm: () => {
|
||||
docRecord.moveToTrash();
|
||||
|
||||
Reference in New Issue
Block a user