mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
feat(core): add enable cloud failed notify (#6741)
This commit is contained in:
@@ -112,6 +112,7 @@ export const ConfirmModalProvider = ({ children }: PropsWithChildren) => {
|
||||
return Promise.resolve(_onConfirm?.())
|
||||
.then(() => onSuccess?.())
|
||||
.catch(console.error)
|
||||
.finally(() => setLoading(false))
|
||||
.finally(() => autoClose && closeConfirmModal());
|
||||
};
|
||||
setModalProps({ ...otherProps, onConfirm, open: true });
|
||||
|
||||
Reference in New Issue
Block a user