refactor: rename ConfirmSyncDialog to KOSyncResolver (#1937)

This commit is contained in:
Huang Xin
2025-08-31 11:46:43 +08:00
committed by GitHub
parent f0c249bce2
commit 06db7f36f8
3 changed files with 22 additions and 20 deletions
@@ -285,14 +285,14 @@ export const useKOSync = (bookKey: string) => {
}
}, [progress, syncState, settings.kosync, pushProgress]);
const resolveConflictWithLocal = () => {
const resolveWithLocal = () => {
pushProgress();
pushProgress.flush();
setSyncState('synced');
setConflictDetails(null);
};
const resolveConflictWithRemote = async () => {
const resolveWithRemote = async () => {
const view = getView(bookKey);
const remote = conflictDetails?.remote;
const book = conflictDetails?.book;
@@ -311,7 +311,7 @@ export const useKOSync = (bookKey: string) => {
errorMessage,
pushProgress,
pullProgress,
resolveConflictWithLocal,
resolveConflictWithRemote,
resolveWithLocal,
resolveWithRemote,
};
};